Wesley Vestjens
d6f0eada8c
Add getZoneById($zoneId) method
2019-01-16 21:43:58 +01:00
Junade
4694904b38
Merge pull request #69 from levidurfee/body-accessor
...
Added a `body` property to the endpoint classes with an accessor
2019-01-02 09:07:56 -05:00
Junade
ba2c37fe1e
Merge pull request #68 from kruisdraad/master
...
Update DNS.php
2018-10-21 15:42:37 +01:00
Marlin-Ops.com - Jurgen Coetsiers
4e17cc8984
Add changing TLS Zone Settings capability
2018-10-21 16:02:42 +02:00
Marlin-Ops.com - Jurgen Coetsiers
67a24c5784
Add changing TLS Zone Settings capability
2018-10-21 11:27:07 +02:00
Marlin-Ops.com - Jurgen Coetsiers
9d1750594e
Add changing TLS Zone Settings capability
2018-10-21 11:22:10 +02:00
Marlin-Ops.com - Jurgen Coetsiers
90e01ff095
Add changing TLS Zone Settings capability
2018-10-21 11:16:57 +02:00
Marlin-Ops.com - Jurgen Coetsiers
8c68295daa
Add changing TLS Zone Settings capability
2018-10-21 11:00:32 +02:00
Levi Durfee
099f383ef3
Add trait to the rest of the endpoints
2018-10-19 11:06:34 -04:00
Levi Durfee
2639331c2b
Add BodyAccessorTrait to most classes
2018-10-19 10:48:25 -04:00
Levi Durfee
d871bdd007
Add BodyAccessorTrait to AccessRules
2018-10-19 10:21:38 -04:00
Levi Durfee
5bea924c76
Set body property in other Zones methods
2018-10-19 10:12:51 -04:00
Levi Durfee
2dd4d8f883
Set body property in cachePurge method of Zones
2018-10-19 09:45:10 -04:00
Bart Vrancken
f19f17ea6f
Update DNS.php
2018-10-06 23:47:25 +02:00
Junade
deb420d087
Update Zones.php
2018-08-28 14:58:25 +01:00
Junade
640b787540
Merge branch 'master' into fix-refresh-cache
2018-08-28 14:53:47 +01:00
Junade
8df0ec5511
Merge pull request #63 from maximivanov/feature/purgeCacheHosts
...
Add support for host-based cache purge
2018-08-28 14:49:49 +01:00
Robbert Müller
9076d714f4
Fixes problem with creating an MX record
...
Fixes #60
php api expects a string and cloudflare api expects a int
this keeps everybody happy without changing API's
2018-08-28 08:47:50 +02:00
Max Ivanov
c9d2782b88
Add support for host-based cache purge
2018-08-23 16:13:56 +01:00
Lemoine
1cca3e0724
fix: Cloudflare Api doesn't like empty tags
2018-08-23 14:54:21 +02:00
Darin Randal
cca073c809
Code cleanup / Quality of Life updates
...
Adapter::get, post, put, patch and delete all had non-optional parameters for $headers and $query or $body. These have been made optional. I also re-ordered the parameters as $headers was never used while $query/$body were heavily used. I also condensed and removed some duplicate calls so that every call to Adapter::get/post sends that call to Adapter::request. It could use a magic method to do this but it might make it more difficult to test.
2018-04-12 23:11:04 -04:00
Junade Ali
d95573976e
SOPS-161 :: Lint changes
2018-03-18 23:45:06 -07:00
Junade Ali
3bfd5e17f1
SOPS-161 :: Add Custom Hostname endpoints to cloudflare-php
2018-03-18 23:40:09 -07:00
Darin Randal
e18a64e7e4
MX records need ability to set priority
2018-03-05 11:38:18 -05:00
Darin Randal
a628cac283
Update phpdoc to match camelCase variable
2018-01-23 10:09:36 -05:00
Darin Randal
0112425a61
Rename $jump_start to $jumpStart to follow camelCase conventions for variables
2018-01-23 10:08:40 -05:00
Darin Randal
45cb8ee539
Fix name of jumpstart zone add option to jump_start
2018-01-23 09:57:14 -05:00
Jorgen Phillips
4e3d307bdd
AnalyticsDashboard params are not headers
...
Also 'continuous' needs to be a string for the API to process it.
2017-12-24 12:41:38 -06:00
Junade
d00a1d3f44
Merge pull request #38 from kleisauke/cleanup
...
Cleanup / fixes
2017-11-25 11:49:35 +08:00
Kleis Auke Wolthuizen
c8e85d2582
Add firewall access rules endpoint ( #37 )
...
* Add firewall access rules endpoint
* Configuration is an object
Maybe this needs to be defined in a seperate namespace (e.g. Cloudflare\API\Configuration) because it's no longer an array.
* Incorporate review
2017-11-25 11:45:18 +08:00
Kleis Auke Wolthuizen
0aa9f6c05a
Fix null pointer exception
2017-11-21 17:48:03 +01:00
Kleis Auke Wolthuizen
bc9e15a557
Required parameter is missing
2017-11-21 17:46:07 +01:00
Kleis Auke Wolthuizen
ee4a42ea06
Replace alias functions with origin functions
2017-11-21 17:41:21 +01:00
Kleis Auke Wolthuizen
90eaea7be2
Use === null instead
2017-11-21 17:39:42 +01:00
Kleis Auke Wolthuizen
a4224265d8
Switch from stdClass to object casting
2017-11-21 17:35:01 +01:00
Kleis Auke Wolthuizen
4f3f82b1ba
Remove redundant parentheses
2017-11-21 17:28:47 +01:00
Kleis Auke Wolthuizen
7c9ea4874d
Shorten the fully qualified class names
2017-11-21 17:27:47 +01:00
Kleis Auke Wolthuizen
0920fc48b2
Remove unnecessary double quotes
2017-11-21 17:25:41 +01:00
Tyler Vigario
3453e44158
Added changeDevelopmentMode & getAnalyticsDashboard to Zones ( #32 )
...
* Added toggleDevelopmentMode to Zones
* Improved success checking
Added PHPUnit test (I think?)
* Fixed success checking
* Fixed test
* Ran PHP CS Fixer
* Added getAnalyticsDashboard to Zones
Renamed toggleDevelopmentMode to changeDevelopmentMode to be uniform
* Fixed test (hopefully)
* Trying it a different way
* Another attempt
* Lol I guess we are just supressing errors for this one?
2017-11-08 21:26:32 +01:00
Junade Ali
84ee7302ca
Readibility: railID to railgunID
2017-10-23 14:29:41 -07:00
Junade Ali
30fc22aa5b
Add Web Application Firewall and Railgun.
2017-10-23 14:17:09 -07:00
Junade Ali
ca9e5bbc28
Enabled PHPMD for src and tests
2017-10-13 15:18:08 +01:00
Mert Oturak
a909f3780e
About cache - 1107 Error code
2017-10-12 03:42:35 +03:00
Anthony Sterling
2faff272df
Applied PSR2 formatting to existing files
2017-09-23 18:50:51 +01:00
Junade
b91dd5e684
Merge pull request #5 from typhonius/add-query-to-get
...
Adds the query parameter to the guzzle call for GET requests.
2017-09-21 23:16:50 +01:00
Junade
77df7ead1e
Merge pull request #11 from typhonius/fix-zone-id-verification
...
Changes sizeof check to throw an error if no zone id is found.
2017-09-21 18:07:55 +01:00
Adam Malone
9939afd0b6
Changes sizeof check to throw an error if no zone id is found.
2017-09-22 02:53:25 +10:00
Adam Malone
7d838d7f5f
Adds the query parameter to the guzzle call for GET requests.
2017-09-21 11:45:21 +10:00
Junade Ali
85d64f8afc
COM-45 :: Bugfix active status in Page Rules
2017-09-20 14:50:55 +01:00
Junade Ali
4699270f51
COM-45 :: Bugfix Page Rules class
2017-09-20 14:32:46 +01:00