eleon / awesome-apis
lumen providers for awesome apis
0.1.2
2016-10-25 01:10 UTC
Requires
- php: ^5.5.9 || ^7.0
- guzzlehttp/guzzle: ^6.2
- illuminate/support: ^5.0
Requires (Dev)
- graham-campbell/testbench: ^3.1
- phpunit/phpunit: ^4.8 || ^5.0
This package is not auto-updated.
Last update: 2024-12-02 14:00:01 UTC
README
#1.- Add env vars to .env file
MEANING_CLOUD_SECRET_KEY=9456dgfgerjukikf89eqwbbqweqwe259kidd5
TWITTER_CLIENT_ID=qwekvfhirgotmo78456456
TWITTER_CLIENT_PASSWORD=g0ri093453j45k39fud9fi9dfigdfg0lkn34f
CLARIFAI_CLIENT_ID=k4h534j5lkfdgoidugfiojlth
CLARIFAI_CLIENT_PASSWORD=TAyGSjA¡2ZKwtKVyYOJodUGeNu4l534hfkd
#2.- Register providers in bootstrap/app.php
$app->register(Eleon\AwesomeApis\Providers\MeaningCloudServiceProvider::class);
$app->register(Eleon\AwesomeApis\Providers\ClarifaiServiceProvider::class);
$app->register(Eleon\AwesomeApis\Providers\TwitterServiceProvider::class);
$app->register(Eleon\AwesomeApis\Providers\MercadoLibreServiceProvider::class);
#3.- Usage
$meaningCloudService = app()->make('MeaningCloudService');
$twitterService = app()->make('TwitterService');
$mercadolibreService = app()->make('MercadoLibreService');
$clarifaiService = app()->make('ClarifaiService');