Answers for "how to purge cloudflare single file in php"

PHP
0

how to purge cloudflare single file in php

1function getZones($key, $email, $page = 1, $per_page = 100) {
  $cmd = 'curl -s -X GET "https://api.cloudflare.com/client/v4/zones?'.
        'status=active&page=$page&per_page=$per_page&order=status&direction=desc&match=all" -H "X-Auth-Email: '.$email.
        '" -H "X-Auth-Key: '.$key.
        '" -H "Content-Type: application/json"';
  return json_decode(shell_exec($cmd));
}  
2
3
4
5
6
7
Posted by: Guest on September-09-2020

Browse Popular Code Answers by Language