sheiyla / ovhapi
The OVH Api integration for Laravel 5.
2.0.0
2018-06-25 08:45 UTC
Requires
- illuminate/support: >=5.1
- ovh/ovh: 2.0.*
This package is not auto-updated.
Last update: 2020-07-11 05:19:05 UTC
README
Installation
Require this package with composer:
composer require sheiyla/ovhapi
After updating composer, add the AppServiceProvider to the providers array in config/app.php:
Sheiyla\OvhApi\Providers\AppServiceProvider::class,
If you want to use the AppFacade for rapid message sending, you can add this line to your config/app.php in the aliases section:
'OvhApi' => Sheiyla\OvhApi\Providers\AppFacade::class,
Usage
Return me infos (using Facade) anywhere in your app:
$OvhApi = OvhApi::Call(); $result = $OvhApi->get('/me'); var_dump($result);
Getting credentials
Create token at: https://api.ovh.com/createToken For convenience, you can put them in your .env file.
Config keys are:
- OVHAPI_APP_KEY => your application key
- OVHAPI_APP_SECRET => your application secret
- OVHAPI_CONSUMER_KEY => your consumer key
- OVHAPI_ENDPOINT => your endpoint (defaults to ovh-eu)
Contributors
Licence
MIT