Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carsso/ovh-api-simple-http-wrapper

OVH API HTTP wrapper written in PHP (not affiliated with OVH)
https://github.com/carsso/ovh-api-simple-http-wrapper

abstraction-layer http-wrapper ovh ovh-api wrapper wrapper-api

Last synced: 3 months ago
JSON representation

OVH API HTTP wrapper written in PHP (not affiliated with OVH)

Awesome Lists containing this project

README

        

OVH API HTTP wrapper written in PHP
===================================

This HTTP wrapper will allow you to easily make OVH API calls by abstracting authentication and requests signature.

With this wrapper, your api calls will be as simple as `curl http://mywebsite.com/my-ovh-api-endpoint/me` (no token to log-in, no signature to handle..)

_Depends on the official OVH API PHP wrapper : https://github.com/ovh/php-ovh_

How to use
----------

Install dependencies with Composer : `composer install`

Copy the default htaccess file : cp .htaccess-dist .htaccess

Copy the default config file : `cp config.php-dist config.php`

Generate OVH API keys "script credentials" and update the config file accordingly : `vim config.php`.

_Read https://github.com/ovh/php-ovh#supported-apis to find the URL to generate the script credentials and the supported endpoints_

/!\ Security warning /!\
------------------------

This wrapper does not provide client-side authentication or restrictions of any kind.

That's a really convenient tool for testing and developing some small projects based on the OVH API, but, for security reasons, you should add an authentication layer in front of it and you should not expose it directly with access to your OVH account.

This wrapper is provided "as-is" and I decline any responsibility of any security issue with your OVH account if you choose to use it in an inappropriate/insecure way.

License
-------

BSD 3-clause "New" or "Revised" License

Note
----

This project is not affiliated with OVH.