Ha Phan
6d9b4ddffe
[RFR]: Added Origin CA Certificate endpoint ( #123 )
...
* Added Certificate endpoint
* Implement all calls in /certificates endpoint
* Added to travis more php versions
* Fix package compatibility
* Added CertificateTest
* Added test for Certificate endpoint
* Added more tests
* Updated README
Co-authored-by: haphan <thanhha.phan@myrepublic.net >
2020-07-07 11:19:15 +01:00
kamilsolarczyk
afd332a747
Maximum value of Edge Cache TTL ( #125 )
...
It is possible to choose a month value, so the value parameter can be greater
2020-07-07 11:18:10 +01:00
Constantin Cuciurcă
ffc3989607
Dns analytics report ( #121 )
...
* Add DNS Analytics report endpoint
Add DNS Analytics report endpoint
Add DNS Analytics report endpoint
* Remove useless response error test
* Add tests for DNS analytics report class methods
* Implement methods for listing grouped by time metrics report
2020-07-07 11:17:48 +01:00
Junade
694342f718
Merge pull request #98 from llbbl/firewall-rules
...
Adding new Firewall rules Class
2020-02-03 17:23:45 +00:00
Abhay Saraf
ed91e639be
Adding new function setOriginCacheControl as a new page rule action.
2020-01-28 11:11:05 +05:30
Samuel Melrose
639be12f7a
Fix PageRulesActions: setResolveOverride,setHostHeaderOverride
2019-09-18 14:38:32 +00:00
Vitaliy Dotsenko
22a87e1b91
Moved the action type and paused or not from the signature to the separate class
2019-07-08 21:20:32 +03:00
Martijn Smidt
1724b66147
Added check_regions for pool configuration
2019-06-03 11:23:27 +02: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
Justin Smith
bd92b2a4c0
Allow creation of ASN access rule
...
Added setASN() method to allow creation of ASN access rules
2019-02-11 14:44:05 -07:00
pxgamer
5841936f04
Fix SSL configuration method
...
Closes #72
2018-11-26 11:23:02 +00:00
Darin Randal
c06fe79ad0
Removed more object casting
2018-04-12 23:19:09 -04: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
Anthony Sterling
3585dde8ea
Fixed merge conflict
2018-02-27 09:45:51 +00:00
Anthony Sterling
730b0c97ee
Nest payload for forwarding_url page rule action in value block
2018-02-27 09:40:50 +00: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
5caae74370
Use $array[] instead of array_push
2017-11-21 17:43:47 +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
Junade Ali
ca9e5bbc28
Enabled PHPMD for src and tests
2017-10-13 15:18:08 +01:00
Junade
a5384b7466
Correct input types for (Bypass) Cache on Cookie
2017-10-03 17:59:59 +01:00
Junade
8ffd3e3541
Merge pull request #18 from anthonysterling/feature/page-rules-config
...
Consolidated some of the config/option creation
2017-10-03 17:57:57 +01:00
Anthony Sterling
cebeae15a3
Inconsistent Array Declaration
...
This PR normalises the declaration of arrays throughout the project, and adds
this to the php-cs-fixer rules.
I've chosen "short" by default, but happy to change the PR to use "long" if
preferred.
2017-10-02 09:05:05 +01:00
Anthony Sterling
b7e70655ce
Consolidated some of the config/option creation
...
I've just added some internal methods to handle the casting and formatting of the
configuration/option creation.
2017-09-28 21:16:27 +01:00
Anthony Sterling
2faff272df
Applied PSR2 formatting to existing files
2017-09-23 18:50:51 +01:00
Junade Ali
3166645a0c
COM-40 :: Added Page Rules endpoint.
2017-09-20 11:52:33 +01:00
Junade Ali
1e8c8d6019
COM-40 :: Add ZoneLockdown and UA Rules
2017-09-19 16:04:35 +01:00