2017 © Pedro PelĂĄez
 

library isdk

Instagram SDK

image

mkharla/isdk

Instagram SDK

  • Monday, July 24, 2017
  • by masJIan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Instagram SDK

Installing

Add to your composer.json file, (*1)

"require"     : {
    "mkharla/isdk" : "dev-master"
  }

Config file

Configure your config file with valid data, (*2)

/*
    |--------------------------------------------------------------------------
    | Instagram API configurations
    |--------------------------------------------------------------------------
    |
    | General configurations
    */

    'api_url'           =>  'https://api.instagram.com/v1',
    'auth_url'          =>  'https://api.instagram.com/oauth/authorize',
    'access_token_url'  =>  'https://api.instagram.com/oauth/access_token',
    'redirect_url'      =>  'yuor-redirect-url',

    /*
    |--------------------------------------------------------------------------
    | Instagram API Client information
    |--------------------------------------------------------------------------
    |
    | This array will be passed to the Instagram SDK client.
    */

    'client'  => [
        'id'            =>  'your-client-id',
        'secret'        =>  'your-secret-key',
    ],

    /*
    |--------------------------------------------------------------------------
    | Login Permissions (Scopes)
    |--------------------------------------------------------------------------
    |
    | The OAuth 2.0 specification allows you to specify the scope of the access you are requesting from the user
    |
    |   + basic             - to read a user’s profile info and media
    |   + public_content    - to read any public profile info and media on a user’s behalf
    |   + follower_list     - to read the list of followers and followed-by users
    |   + comments          - to post and delete comments on a user’s behalf
    |   + relationships     - to follow and unfollow accounts on a user’s behalf
    |   + likes             - to like and unlike media on a user’s behalf

    */

    'permissions'   =>  [
        'basic',
        'public_content'
    ],

    /*
    |--------------------------------------------------------------------------
    | HTTP client
    |--------------------------------------------------------------------------
    |
    | SDK should be implemented using poor PHP (5.6 / 7 , without any frameworks)
    | I was not sure about using guzzlehttp/guzzle, so I made 2 options you can choose here:
    |
    |   vendor - guzzlehttp/guzzle
    |   custom - self made
    */

    'http_client'   =>  'vendor',

    /*
    |--------------------------------------------------------------------------
    | TASK
    |--------------------------------------------------------------------------
    |
    | Notes:
    | You don’t need a front end and you can be sure that third party tool
    | (which will use your SDK) already has an “access_token”.
    */

    'access_token' => 'your-access-token-here'

Examples

You can find few examples of SDK in examples folder, (*3)

The Versions

24/07 2017

dev-development

dev-development

Instagram SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mykhailo Kharlanov

24/07 2017

dev-master

9999999-dev

Instagram SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mykhailo Kharlanov