Commit Graph

11 Commits

Author SHA1 Message Date
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
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
Darin Randal
e18a64e7e4 MX records need ability to set priority 2018-03-05 11:38:18 -05: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
Anthony Sterling
2faff272df Applied PSR2 formatting to existing files 2017-09-23 18:50:51 +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
7d0c0c86dc COM-40 :: General refactoring/fixes. 2017-09-04 21:14:34 +01:00
Junade Ali
3b028041a6 Additional DNS API coverage, PHPUnit whitelist and license added. 2017-08-22 16:28:05 +01:00
Junade Ali
6176cd81a3 Added extra endpoints. 2017-06-09 16:18:24 +01:00