micchelmelo / laravel-instagram-api
为 Laravel 实现Instagram私有API
1.17.0
2020-04-13 17:12 UTC
Requires
- php: >=5.6.4
- michelmelo/instagram-private-api: ^2.0.4
README
Laravel Instagram API
Laravel 对 Instagram私有API 包的集成。
更改
apikey
安装
composer require michelmelo/laravel-instagram-api
将提供者添加到您的 app.php
配置文件中
'providers' => [
...
MichelMelo\InstagramApi\LaravelInstagramApiProvider::class,
]
将别名添加到您的 app.php
配置文件中
'alias' => [
...
'Instagram' => MichelMelo\InstagramApi\Facades\InstagramApi::class,
]
配置
php artisan vendor:publish --provider="MichelMelo\InstagramApi\LaravelInstagramApiProvider" --tag=config
编辑 config/mm-instagram-api.php
。
用法
方法与 Instagram私有API 包相同。
使用 \Instagram::setUser($username, $password)
代替
$instagram = new Instagram($debug);
$instagram->setUser($username, $password);
拉取请求
- 填写 PULL_REQUEST 模板。