Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Added IPs support
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesryanbell committed Jun 5, 2016
1 parent 8616dde commit 1b59d84
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jamesryanbell/cloudflare",
"description": "Cloudflare API V4 PHP wrapper",
"license": "MIT",
"version": "1.5.0",
"version": "1.6.0",
"keywords": ["cloudflare", "api"],
"authors": [
{
Expand Down
33 changes: 33 additions & 0 deletions src/CloudFlare/IPs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace Cloudflare;

use Cloudflare\Api;

/**
* CloudFlare API wrapper
*
* CloudFlare IPs
* CloudFlare IP space
*
* @author James Bell <[email protected]>
* @version 1
*/

class IPs extends Api
{
/**
* Default permissions level
* @var array
*/
protected $permission_level = array('read' => null, 'edit' => null);

/**
* CloudFlare IPs
* Get CloudFlare IPs
*/
public function ips($identifier)
{
return $this->get('/ips');
}
}

0 comments on commit 1b59d84

Please sign in to comment.