Comments (3)
Releases are now tagged :)
Thanks for the idea.
from php-ovh.
Great!
from php-ovh.
Bonjour à tous,
Je ne parviens pas à envoyer de SMS en PHP via l'API OVH, et si quelqu'un avait un retour d'expérience à partager sur le sujet, ce serait top.
En intro, je précise que mon client utilise un serveur dédié en release 3 (avec php 5.3.3).
J'ai testé les deux connecteurs à l'API dispo :
- PHP-OVH, plus générique : https://github.com/ovh/php-ovh
- PHP-OVH-SMS, spécifique aux SMS https://github.com/ovh/php-ovh-sms (ce qui m'intéresse plus)
Et dans les deux cas, je butte au même point, l'installation....
Les deux readme précisent qu'il faut installer le wrapper de l'API ovh avec ces dépendances via composer.
La page d'install de Composer est assez claire : https://getcomposer.org/download/
Je me suis positionné dans le même dossier que mon API php-ovh-sms-master, et y ai executé les 4 commandes en question, cela à fonctionné.
Retour sur la doc de l'API OVH ou il est écrit qu'il faut lancer l'installeur de composer comme suit :
php composer.phar install
Et le retour m'indique que la version de PHP ne permet pas l'installation de Guzzle (utilisé par l'API) :
Your requirements could not be resolved to an installable set of packages.
_ Problem 1_
_ - ovh/ovh v1.1.1 requires guzzlehttp/guzzle >=4.0,<6.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1]._
_ - ovh/ovh v1.1.2 requires guzzlehttp/guzzle >=4.0,<6.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1]._
_ - guzzlehttp/guzzle 5.3.1 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement._
_ - guzzlehttp/guzzle 5.3.0 requires php >=5.4.0 -> your PHP version (5.3.3) does not satisfy that requirement._
....
Est-ce possible que l'API d'OVH ne fonctionne pas sur les releases d'OVH ? Peut on créer ce fichier autoload.php autrement que via Composer ?
J'ai également essayé avec phing, qui m'a annoncé une erreur ligne 55 sur le fichier Api.php......
Une autre idée ?
Merci d'avance pour votre retour.
from php-ovh.
Related Issues (20)
- Unable to generate documentation
- How to create and PUT a file on the Document endpoint ? HOT 1
- guzzlehttp/psr7:3.0 -> Attempted to call function "build_query" from namespace "GuzzleHttp\Psr7". HOT 9
- Add dns zone
- GET https://eu.api.ovh.com/1.0/ip/141.94.185.0/28/mitigation?auto=false&state=ok resulted in a 404 Not Found
- No WHOIS HOT 1
- Invalid header in API response => Library is not usable anymore with Guzzle >= 7.4.2
- PHP8 Compatibility HOT 1
- Server::InternalServerError HOT 1
- Error 500 Api eu BETA
- how to get OVH Application Key HOT 1
- cheking out a cart ends up with 403 forbidden. HOT 1
- Get multiple phonebook contacts HOT 2
- autoload.php file missing on download HOT 1
- Get all outgoing SMS details in one request HOT 2
- SMS Sender is not displayed correctly via OVH SMS Service with Sending Jobs API HOT 1
- {"message":"This order can't be paid with paypal"}
- Impossible to send json through GuzzleHTTP wrapper HOT 5
- Error while refreshing do domain HOT 3
- Inconsistency between EU/US API - Cannot download invoices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ovh.