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

80 Commits

Author SHA1 Message Date
Stéphane HULARD
9f6492185b Create a central method to send the Request
All the calls go through that method, it'll allow extensibility.
2016-12-13 15:51:05 +01:00
Stéphane HULARD
3cfd9e4b30 Update rawCall request creation logic
All the data are computed before `Request` creation. It allow to perform a simple `new Request` with all the analysis result.

Headers are set with authentication, URI is cleaned...
2016-12-13 15:51:05 +01:00
Stéphane HULARD
3203897e05 Remove default client creation logic 2016-12-13 15:49:49 +01:00
Stéphane HULARD
d2f1c0dab1 Update bindings to use the Http\Client\* objects 2016-12-13 15:49:49 +01:00
Stéphane HULARD
55299060c9 Update composer to use Httplug adapters
`php-http/guzzle-adapter` is still required as dev dependency because it is used as the base adapter. All the unit tests required that client to work.
2016-12-13 15:49:49 +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
Vincent Cassé
a3afac6cf0 Merge pull request #21 from VincentCasse/master
Welcome to 2.x.x branch :)
2016-01-12 11:12:24 +01:00
Jean-Tiare Le Bigot
84d7ff825e Merge pull request #23 from VincentCasse/exampleHosting
Add hosting get capabilities example

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2016-01-11 18:38:05 +01:00
Vincent Casse
16fabb2bfb Add hosting get capabilities example
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-11 18:32:20 +01:00
Vincent Casse
cc0ba042ca Fix tls issue into travis
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2016-01-06 11:11:55 +01:00
Vincent Casse
9aa7df73bf Fix timeout and guzzle 6
Fix copyrights

Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2015-12-17 18:14:35 +01:00
Vincent Casse
cdd9a916f8 Merge branch 'master' of https://github.com/ByScripts/php-ovh
Conflicts:
	.travis.yml
	src/Api.php
2015-12-17 18:03:54 +01:00
Jean-Tiare Le Bigot
efd770390a Merge pull request #20 from VincentCasse/master
Fix issues open on github

Signed-off-by: Jean-Tiare Le Bigot <jean-tiare.le-bigot@corp.ovh.com>
2015-12-16 11:34:19 +01:00
Vincent Casse
d99c758c72 Add documentation about HTTP client library injection
Signed-off-by: Vincent Casse <vincent.casse@corp.ovh.com>
2015-12-15 18:25:35 +01:00
Vincent Casse
3f9aec3547 Add default timeout on http client
Issue #18
2015-12-15 17:25:42 +01:00
Vincent Casse
ce12dcb280 Delete "createToken" link for Runabove
Issue #11
2015-12-15 17:10:08 +01:00
Vincent Cassé
3a8ce8a924 Add PHP7 into automated tests 2015-10-09 22:29:18 +02:00