定制 guzzlehttp/guzzle-instagram-subscriber 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

guzzlehttp/guzzle-instagram-subscriber

最新稳定版本:v0.2.0

Composer 安装命令:

composer require guzzlehttp/guzzle-instagram-subscriber

包简介

Guzzle Instagram subscriber

README 文档

README

Latest Stable Version Build Status

guzzle-instagram-subscriber

Guzzle Subscriber Instagram: Authorizes the instagram app and generates the access token using login / password

Installing

This project can be installed using Composer. Add the following to your composer.json:

    {
        "require": {
            "guzzlehttp/guzzle-instagram-subscriber": "dev-master"
        }
    }

Retrieve the access token using the Implicit Authorization Subscriber

Here's an example showing how to authorize an instagram app and generate access token just one step:

    use GuzzleHttp\Client;
    use GuzzleHttp\Subscriber\Instagram\ImplicitAuth;

    $client = new Client();

    $config = [
        'username' => 'instagram_username',
        'password' => 'instagram_password',
        'client_id'    => 'instagram_client_id',
        'redirect_uri' => 'instagram_redirect_uri',
    ];

    $implicitAuth = new ImplicitAuth($config);
    $client->getEmitter()->attach($implicitAuth);

    $client->post('https://instagram.com/oauth/authorize');

    $access_token = $implicitAuth->getAccessToken();

Once you've registered your client it's easy to start requesting data from Instagram, Using this access token to request the Instagram API endpoints. More information: http://instagram.com/developer/endpoints/

统计信息

  • 总下载量: 491
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-30