CloudflareServer_test.go 330 B

12345678910111213141516
  1. package main
  2. import (
  3. "context"
  4. "github.com/cloudflare/cloudflare-go"
  5. "testing"
  6. )
  7. func Test_test(t *testing.T) {
  8. api, _ := cloudflare.New("2cc87f6213a4c40e5a90c8dced3c9c577eda5", "ll@centcloud.net")
  9. ctxAPI := context.Background()
  10. rules, _ := api.ListPageRules(ctxAPI, "4b5063657ba1b1bc35a7e036198dac67")
  11. print(rules)
  12. }