Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafaelcalleja/guzzle-instagram-subscriber
Guzzle Subscriber Instagram authorize instagram application and generate access_token using login/password
https://github.com/rafaelcalleja/guzzle-instagram-subscriber
Last synced: 7 days ago
JSON representation
Guzzle Subscriber Instagram authorize instagram application and generate access_token using login/password
- Host: GitHub
- URL: https://github.com/rafaelcalleja/guzzle-instagram-subscriber
- Owner: rafaelcalleja
- Created: 2014-11-25T18:45:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-18T14:52:56.000Z (over 8 years ago)
- Last Synced: 2024-07-16T23:39:06.624Z (4 months ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 9
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Latest Stable Version](https://poser.pugx.org/guzzlehttp/guzzle-instagram-subscriber/v/stable)](https://packagist.org/packages/guzzlehttp/guzzle-instagram-subscriber)
[![Build Status](https://travis-ci.org/rafaelcalleja/guzzle-instagram-subscriber.svg?branch=master)](https://travis-ci.org/rafaelcalleja/guzzle-instagram-subscriber)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:```javascript
{
"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:
```php
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/