1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00
Commit Graph

91 Commits

Author SHA1 Message Date
Romain Beuque
5374f32a67
ovh-us: changing OVH US endpoint
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2018-11-09 16:26:31 +01:00
Vincent Cassé
3f64829ad8
Merge pull request #78 from rbeuque74/ovh-us
ovh-us: changing URL
2018-06-12 11:03:28 +02:00
Romain Beuque
90b95788b3
ovh-us: changing URL
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2018-06-12 10:29:36 +02:00
Vincent Cassé
69f2347e2e
Merge pull request #74 from marema31/unauth
merged
2018-02-26 18:16:18 +01:00
Marc Carmier
74c0e89305 Always retrieve schema description in unauthenticated mode 2018-02-23 20:29:15 +01:00
Vincent Cassé
e56816612a Manage unauthenticated calls without application key and application secret
Signed-off-by: Vincent Cassé <vincent@casse.me>
2018-02-23 17:58:04 +01:00
Vincent Cassé
1c04b1a4fb
Merge pull request #72 from marema31/accept-endpoint-url
Allow URL for api_endpoint specification
2018-02-09 17:04:54 +01:00
Marc Carmier
49d607e28d Added unit test for endpoint specification 2017-12-28 11:34:28 +01:00
Vincent Cassé
e7d470171e
Merge pull request #71 from marema31/US-endpoint
Add US endpoint
2017-12-19 21:32:50 +01:00
Marc Carmier
e14f758e66 Allow URL for api_endpoint specification 2017-12-18 12:29:51 +01:00
Marc Carmier
7d77f06fad Add US endpoint 2017-12-18 12:13:08 +01:00
Vincent Cassé
5bbb26ace4
Merge pull request #68 from hedii/patch-1
Make rawCall method protected instead of private
2017-10-31 21:26:23 +01:00
hedii
1b19b16def Make rawCall method protected instead of private
There is no point keeping the rawCall method private. On the other hand, the rawCall method being protected makes it easier to extend \Ovh\Api class.

Use case : I extend \Ovh\Api class and want to override get, post, put and delete methods to manipulate $content param before making a request. I cannot do this now because i cannot call private rawCall method from a child class. I can provide a quick explanation snippet if needed.
2017-10-04 14:20:15 +02:00
Vincent Cassé
473feb2497 Merge pull request #59 from MikeRoetgers/json_encode
Escaping forward slashes leads to 400 response
2017-04-10 21:49:02 +02:00
Mike Roetgers
7adabd3445 stop escaping forward slashes 2017-04-08 17:43:19 +02:00
Jean-Tiare Le Bigot
2bf008605c update copyrights to 2017
Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2017-01-02 13:03:30 +01:00
Vincent Cassé
ed5207be27 Merge pull request #51 from shakaran/patch-1
Improve suggestions to install ovh-php repository
2016-11-15 16:32:18 +01:00
Ángel Guzmán Maeso
e8c3dbf13e Improve suggestions to install ovh-php repository
This modification adds the explanations to install quickly through composer without generate a composer.json file using only a command.
2016-11-15 16:24:34 +01:00
Vincent Cassé
01d233b910 Merge pull request #47 from carsso/master
Handle custom headers in a request and fix ovh-eu url
2016-09-03 21:18:47 +02:00
Germain Carré
234d0e3e51 Adding headers option and changing OVH Europeean API url
Signed-off-by: Germain Carré <germain@carsso.com>
2016-09-01 11:43:57 +02:00
Vincent Cassé
1753296cce Merge pull request #45 from ovh/jt-script
script: update release script
2016-08-31 21:54:36 +02:00
Jean-Tiare Le Bigot
79ee4e421a script: update release script
Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2016-07-07 11:30:10 +02:00
Vincent Cassé
c3c860ee71 Merge pull request #43 from VincentCasse/master
Add script to auto upload binay files
2016-07-07 10:10:34 +02:00
Vincent Cassé
2afe27384b Merge pull request #44 from ovh/jt-doc-exceptions
documentation: catching an exception
2016-06-27 22:59:16 +02:00
Jean-Tiare Le Bigot
ffa29d1bc2 documentation: catching an exception
Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2016-06-27 10:27:06 +02:00
Vincent Cassé
31082887a6 Fix some code after review
Signed-off-by: Vincent Cassé <vincent@casse.me>
2016-04-28 22:34:22 +02:00
Vincent Cassé
aac96e68c1 Merge pull request #42 from shulard/feature/phing
Use a PHP build tool, Phing instead of Grunt.
2016-04-19 12:56:57 +02:00
Stéphane HULARD
c13758720b Use a PHP build tool, Phing instead of Grunt.
As I already mentioned in the #35 issue, I think it's more suitable to use a PHP build tool instead of a JS one. I don't tell that Grunt is not a powerful tool but it's a complicated installation process to be able to run tests.

Phing is required as a composer package and can be run directly after the composer install.

Examples:

```
vendor/bin/phing
vendor/bin/phing test
vendor/bin/phing clean
vendor/bin/phing phplint
vendor/bin/phing phpcs
vendor/bin/phing phpunit
vendor/bin/phing phpunit -Donly.units=true #The travis test process
```

The only difference here is the watch process. Phing doesn't have that kind of feature. It can be emulated with different tasks but require a lot more work. I think that PR is the first step, maybe we can go further if necessary.

Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
2016-04-19 09:59:15 +02:00
Vincent Cassé
0c43b069a2 Add script to auto upload binay files
Signed-off-by: Vincent Cassé <vincent@casse.me>
2016-04-18 23:09:41 +02:00
Vincent Cassé
a3896a6562 Merge pull request #40 from ovh/jt-bump-version
add bump-version helper
2016-04-18 21:48:37 +02:00
Jean-Tiare Le Bigot
3ebf59eefb add bump-version helper. See #37
Signed-off-by: Jean-Tiare Le Bigot <jt@yadutaf.fr>
2016-03-28 23:44:35 +02:00
Vincent Cassé
815b07ba22 Merge pull request #36 from shulard/feature/invalid-direct-get
Hi @shulard,

Thanks a lot for this contribution :)

Merged
2016-02-29 14:01:23 +01:00
Stéphane HULARD
9703ee3cdd Remove a direct client call, use API get method.
Remove the `$this->http_client->get()` call used in the `calculateTimeDelta` method.
This call is too coupled to the HttpClient, using the same method for all the calls is always better.

Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
2016-02-29 11:03:59 +01:00
Stéphane HULARD
940ec307fb Introduce a decodeResponse method.
This new method allow to perform a `rawCall` call and retrieve the full response instance.
It'll help to manipulate response more easily.

Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
2016-02-29 11:03:45 +01:00
Vincent Cassé
25a97501a1 Merge pull request #27 from Rbeuque74/fixMultipleQueryString
fix: incorrect query when passed from url and not from content
2016-02-10 14:16:38 +01:00
Romain Beuque
285e9e43e1 Merge pull request #32 from VincentCasse/update_doc
Add endpoints into the documentation
2016-02-03 10:56:27 +01:00
Vincent Cassé
48d3f6e761 Merge pull request #1 from Rbeuque74/update_doc_markdown
(fix): add formatting to endpoint information
2016-02-03 10:48:07 +01:00
Romain Beuque
cc676cd9a2 (fix): add formatting to endpoint information
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2016-02-03 10:45:50 +01:00
Vincent Casse
fef24b65a7 Add endpoints into the documentation
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-02-03 10:31:45 +01:00
Romain Beuque
d3bd44ed68 fix: hook that modify Guzzle parameters serialization when true/false value
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2016-02-01 10:50:33 +00:00
Romain Beuque
57ba00310d Added tests for #27 + fix empty comparaison
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2016-01-21 18:22:06 +00:00
Romain Beuque
0506a231ec fix: incorrect query when passed from url and not from content
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
2016-01-21 16:16:20 +00:00
Vincent Cassé
43b0ba34e4 Merge pull request #26 from Olinkl/AdrienBensaibi/fix_invalidsignature_by_querystring
Add content from QueryString into  to build signature
2016-01-21 17:01:36 +01:00
Adrien Bensaibi
727249f738 Add content from QueryString to build valide signature
Signed-off-by: Adrien Bensaibi <adrien.bensaibi@corp.ovh.com>
2016-01-19 14:40:35 +00:00
Jean-Tiare Le Bigot
b472ebdec1 Merge pull request #25 from VincentCasse/add_example
Add attached domain example

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2016-01-19 12:15:11 +01:00
Vincent Casse
0378c8db51 Add attached domain example
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-19 11:59:59 +01:00
Jean-Tiare Le Bigot
33c06797c5 Merge pull request #24 from VincentCasse/add_redirection_example
Add new example to add http redirection

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2016-01-13 18:12:14 +01:00
Vincent Casse
42c0a43c4b Fix typo
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-13 18:09:18 +01:00
Vincent Casse
aded4f28f7 Fix typo
Improve script

Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-13 17:36:37 +01:00
Vincent Casse
324d42ea3c Add example to add http redirection
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-13 12:56:19 +01:00