Junade
b17ae6e7d0
Merge pull request #90 from squeezely/loadbalancers
...
LoadBalancers + LoadBalancers Pool endpoint integration
2019-06-07 16:27:15 +01:00
Junade
b558622bb5
Merge pull request #92 from exportsmedia/feature-crypto-endpoints
...
Add Crypto endpoints to crypto.php, update TLS.php
2019-06-07 16:26:32 +01:00
Junade
d913aa827f
Merge pull request #94 from exportsmedia/feature-update-security-level
...
Add Firewall Settings Endpoints, Tests
2019-06-07 16:25:47 +01:00
Michael
bd10d7f833
fix security endpoint
2019-05-25 22:58:10 -05:00
Michael
598ba5c1d1
add firewall settings endpoints, tests
2019-05-25 22:53:56 -05:00
Michael
ed06650390
move array over
2019-05-25 22:14:00 -05:00
Michael
246925dec2
add get dns record id method, test
2019-05-25 22:10:36 -05:00
Michael Markoski
7a7e6dc364
move array over
2019-05-25 15:39:30 -05:00
Michael Markoski
5f57b871aa
remove new lines
2019-05-25 15:37:34 -05:00
Michael Markoski
31453d8184
remove new line
2019-05-25 15:36:29 -05:00
Michael Markoski
79ca15c066
split methods to another class to pass CI test
2019-05-25 14:59:29 -05:00
Michael Markoski
fb9d75d94a
Add Crypto endpoints to crypto.php, update TLS.php
...
add php docs for methods
add test class
work on crypto tests
add tls tests
finish crypto tests
update doc returns
add type to parameter
2019-05-22 14:24:37 -05:00
easelify
6a29d75001
Fix updatePageRule() method
2019-05-17 20:18:22 +08:00
Martijn Smidt
99c174bcb3
Added pools class and tests
...
Small changes in loadbalancer configuration
2019-05-14 11:50:52 +02:00
Martijn Smidt
3cfeedbe4d
Added loadbalancers class and tests
2019-05-13 17:05:41 +02:00
Junade
7aa3a118af
Merge pull request #78 from linuxjuggler/master
...
Implementing the User's Account Memberships
2019-05-08 19:56:24 +01:00
Wesley Vestjens
6410f50f6d
Add tests for getZoneById() method
2019-01-16 22:09:49 +01:00
Zaher Ghaibeh
6f1ac605f5
adding User's Account Memberships
2019-01-13 12:31:18 +03: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
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
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
57318b2a56
Fix lint error
2018-10-19 11:28:10 -04: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
c60064e542
Add more assertions for BodyAccessorTrait
2018-10-19 10:18:57 -04:00
Levi Durfee
943b0d85d4
Add test using getBody trait method
2018-10-19 10:10:00 -04:00
Levi Durfee
45df26fec3
Add a test for cachePurge
2018-10-19 09:54:38 -04:00
Max Ivanov
c9d2782b88
Add support for host-based cache purge
2018-08-23 16:13:56 +01: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
3bfd5e17f1
SOPS-161 :: Add Custom Hostname endpoints to cloudflare-php
2018-03-18 23:40:09 -07:00
Darin Randal
fe854e1b21
Update zone tests to reflect correctly named jumpstart option
2018-01-23 10:01:51 -05:00
Jorgen Phillips
bd83c6d48a
Fix test
2017-12-24 12:48:22 -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
dfa299c895
Remove unused imports
2017-11-21 17:54:30 +01:00
Kleis Auke Wolthuizen
e1864a6824
Drop unneeded arguments
2017-11-21 17:52:59 +01:00
Kleis Auke Wolthuizen
a4224265d8
Switch from stdClass to object casting
2017-11-21 17:35:01 +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
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
Junade Ali
6a76e1cc3c
Updated DNSTest style.
2017-10-03 18:08:32 +01:00
Anthony Sterling
db62f1db8a
Added test coverage for DNS Update
...
I've added a test to cover the updating of a DNS record to help debug Issue #19
2017-10-02 08:48:43 +01:00
Anthony Sterling
fbb5aac074
Moved JSON API Responses to test fixtures
...
This PR moves the JSON API responses used in the tests to fixture files
within the tests folder. This allows reuse and the ability to lint/validate
these fixtures if required - although not covered in this PR.
I've added TestCase::getPsr7StreamForFixture and TestCase::getPsr7JsonResponseForFixture
to reduce code duplication and enable some assertions around the expected fixures/responses.
Thanks,
2017-09-24 15:24:33 +01: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
Adam Malone
7d838d7f5f
Adds the query parameter to the guzzle call for GET requests.
2017-09-21 11:45:21 +10:00
Junade Ali
635a299b43
COM-45 :: Update PageRule tests.
2017-09-20 14:55:44 +01:00