jusdepixel/instagram-api-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Laravel support v9, v10 Tests passing Licence MIT

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-01