jusdepixel/instagram-api-laravel
最新稳定版本:v1.2.4
Composer 安装命令:
composer require jusdepixel/instagram-api-laravel
包简介
Get your instagram feeds and share them !
关键字:
README 文档
README
Get multiple instagram feeds and share them in one
Configuration
Setting your Instagram application in .env
INSTAGRAM_ROUTES_PREFIX=api
INSTAGRAM_CLIENT_ID=INSTAGRAM_CLIENT_ID
INSTAGRAM_CLIENT_SECRET=INSTAGRAM_CLIENT_SECRET
INSTAGRAM_REQUEST_URI=https://mydomain.me/INSTAGRAM_ROUTES_PREFIX/auth/code
Installation
Install this package via Composer
composer require jusdepixel/instagram-api-laravel
Add service in config/app.php
Jusdepixel\InstagramApiLaravel\InstagramServiceProvider::class,
Add jobs in app/Console/Kernel.php
protected function schedule(Schedule $schedule): void
{
$schedule->job(new RefreshTokenJob)->daily();
$schedule->job(new RefreshMediaJob)->daily();
$schedule->job(new AutoRepostJob)->daily();
}
Run migration
php artisan migrate
And start server
php artisan serve
Usage
Get your instagram app code first
GET /api/init/url
Copy returned code
{"code":"INSTAGRAM_CODE"}
Then, get your token
POST /api/auth/login/INSTAGRAM_CODE
You are now logged, you could use routes !
Routes
See instagram-api-laravel.postman_collection.json
Link
Github instagram-api-laravel
Packagist instagram-api-laravel
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-01