Package Data | |
---|---|
Maintainer Username: | tperrelli |
Maintainer Contact: | tiagoyg@gmail.com (Tiago Perrelli) |
Package Create Date: | 2017-06-01 |
Package Last Update: | 2017-11-24 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:01:30 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.
The package installation can be done with composer by the following command:
composer require dotenv/instagram
Dotenv\Instagram\Providers\InstagramServiceProvider::class,
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
php artisan vendor:publish --provider="dotenv\instagram"
Route::get('auth/', function() {
return \Instagram::authenticate();
});
Route::get('auth/callback', function() {
$user = \Instagram::retrieveUser();
$userFromToken = \Instagram::userFromToken($user->token);
});
Instagram library is licensed under [The MIT License (MIT)] (https://github.com/dotenv/instagram/blob/master/LICENSE)(LICENSE).