Package Data | |
---|---|
Maintainer Username: | leleleon |
Maintainer Contact: | erasmo.lele@gmail.com (Erasmo León) |
Package Create Date: | 2016-10-24 |
Package Last Update: | 2016-10-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:09:39 |
Package Statistics | |
---|---|
Total Downloads: | 17 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
#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');