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

123 Commits

Author SHA1 Message Date
Romain Beuque
4b32a4405d
Merge pull request #130 from peter279k/improve_assertions
Improve assertions about equals and count
2023-06-12 15:11:36 +02:00
Romain Beuque
64e7ddcae8
Merge pull request #129 from peter279k/update_contributing
Update PHPUnit version for unit test description
2023-06-12 14:57:33 +02:00
Peter
ea3676d700
Improve assertions about equals and count
Signed-off-by: Peter <peter279k@gmail.com>
2023-05-31 17:09:01 +08:00
Peter
c9d10d3bce
Update PHPUnit version for unit test description
Signed-off-by: Peter <peter279k@gmail.com>
2023-05-31 16:31:43 +08:00
Adrien Barreau
096a7b7413
Merge pull request #128 from Benjamin-Loison/master
Fix typos in `README.md` and `CONTRIBUTING.rst`
2023-05-31 10:16:36 +02:00
Benjamin Loison
d78cbd3718
Remove incorrect space before two dots in README.md
Signed-off-by: Benjamin Loison <benjamin_loison@users.noreply.gitea.lemnoslife.com>
2023-05-30 10:33:58 +02:00
Benjamin Loison
1fd1db27d1
Add a missing dot in CONTRIBUTING.rst
Signed-off-by: Benjamin Loison <benjamin_loison@users.noreply.gitea.lemnoslife.com>
2023-05-30 10:33:51 +02:00
Benjamin Loison
50e52c5bf5
Replace *retreived* with *retrieved* in README.md
Signed-off-by: Benjamin Loison <benjamin_loison@users.noreply.gitea.lemnoslife.com>
2023-05-30 10:33:38 +02:00
Romain Beuque
9a29f720d0
Merge pull request #125 from deathiop/v2
feat: allow /v1 or /v2 prefixes in path
2023-04-07 10:09:14 +02:00
Adrien Barreau
73dab16efb test: skip functional tests if no credentials are provided
Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>
2023-03-31 17:23:35 +00:00
Adrien Barreau
255b26a56e feat: allow /v1 or /v2 prefixes in path
- allow /v1 and /v2
- always send X-Ovh-Application
- rewrite test mocks

Signed-off-by: Adrien Barreau <adrien.barreau@ovhcloud.com>
2023-03-31 17:23:35 +00:00
Romain Beuque
25cb8defee
Merge pull request #122 from carsso/master
Adding Github actions, codecov config, updating tests accordingly and re-organize README file
2023-03-13 18:16:09 +01:00
Germain Carré
7d606bdcc1 Adding Github actions, codecov config, updating tests accordingly and re-organize README file
Signed-off-by: Germain Carré git@germain.sh
2023-03-06 18:38:12 +01:00
Romain Beuque
cbb47888f5
Merge pull request #116 from carsso/master
Switching Guzzle build_query to Query::build & Adding PHP 8.x in travis build
2022-08-01 19:07:18 +02:00
Germain Carré
94fd5e0aed Adding PHP 8.0 & 8.1 in travis build
Signed-off-by: Germain Carré git@germain.sh
2022-01-29 05:38:39 +01:00
Germain Carré
0bfca7b318 Switching Guzzle build_query to Query::build
After Guzzle 7.2, GuzzleHttp\Psr7\build_query has been replaced by GuzzleHttp\Psr7\Query::build
cf https://github.com/guzzle/guzzle/pull/2712 & https://github.com/guzzle/psr7/pull/345

Signed-off-by: Germain Carré git@germain.sh
2022-01-29 05:03:07 +01:00
Romain Beuque
75852ad0fe README: change documentation about how to run the tests 2021-01-20 09:02:28 +00:00
Romain Beuque
d14a0d1cdb
Merge pull request #106 from WelcomingGroup/master
chore: bump to php 7.4, guzzle 7, phpunit 9
2021-01-20 09:57:38 +01:00
Romain Beuque
951e4adedb fix: tests now pass with PHPUnit and PHP7.4
Fixes unit tests for #106
2021-01-19 21:34:41 +01:00
Stéphane Bour
3dd7f3ecbe
chore: bump to php 7.4 and add ext-json 2020-12-08 13:26:59 +01:00
Stéphane Bour
c042884a32
refactor: hint and simplify if/else 2020-12-08 13:26:59 +01:00
Stéphane Bour
6bfd3cac33
style: psr2 2020-12-08 13:26:59 +01:00
Stéphane Bour
f322f6a819
chore: bump to php 7.4, guzzle 7, phpunit 9 2020-12-08 13:26:59 +01:00
Romain Beuque
c473b3d67e
Merge pull request #94 from carsso/master
Sending authentication headers on requestCredentials
2019-11-16 18:12:55 +01:00
Germain Carré
73ffcf672e Adding unit test testMissingOvhApplicationHeaderOnRequestCredentials
Signed-off-by: Germain Carré <germaincarre@yahoo.fr>
2019-07-10 11:23:46 +02:00
Germain Carré
8c39467dd6 Sending authentication headers on requestCredentials
Signed-off-by: Germain Carré <germaincarre@yahoo.fr>
2019-07-10 11:23:46 +02:00
Romain Beuque
45c9b8002f
Merge pull request #95 from carsso/travis
Travis : Removing hhvm, PHP 5.5 and adding PHP 7.1, 7.2, 7.3
2019-07-09 19:46:32 +02:00
Germain Carré
37728889ca Adding php 7.1 7.2 and 7.3 in travis build
Signed-off-by: Germain Carré <germaincarre@yahoo.fr>
2019-07-09 12:01:08 +02:00
Germain Carré
9e586bd392 Removing hhvm, PHP 5.5 and duplicate PHP 7.0 from travis build
Signed-off-by: Germain Carré <germaincarre@yahoo.fr>
2019-07-08 23:21:15 +02:00
Vincent Cassé
88e67ac3aa
Merge pull request #85 from tekbreak/patch-1
Adding dot as subdomain separator
2018-12-05 21:35:48 +01:00
tekbreak
9ebdd50701
Adding dot as subdomain separator 2018-12-03 23:38:07 +01:00
Vincent Cassé
30a2419e10
Merge pull request #84 from ovh/rb/endpoint-ovhus
ovh-us: changing OVH US endpoint
2018-11-09 21:48:59 +01:00
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