2017 © Pedro Peláez
 

library diminho

Instagram SDK

image

diminho/diminho

Instagram SDK

  • Friday, March 24, 2017
  • by diminho
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Instagram PHP SDK

Test task for application on a job, (*1)

Installation

You can download SDK via composer, (*2)

$ composer require diminho/diminho=dev-master

Config

There are several templates of a config file (config_default) in config folder. Rename it to config.[ext]. Only one config file should be active at a time. Config may be of PHP or JSON fomat. Access token can be set via config file or programmatically via SDK\Auth class., (*3)

Usage

Autoloading. Import in your script, (*4)

require __DIR__ . './vendor/autoload.php';

Initialization, (*5)

$sdk = new SDK\InstaSDK();

Get a user by ID, (*6)

$response = $sdk->getUserById(1190990766);

$response it is an object of a Response class, (*7)

API List

USER section: * getUserById($userID); -- GET * getMediaByShortcode($shortcode); --GET * getSearchUserByUsername($$username, [ $params] ); --GET, (*8)

MEDIA Section * getMediaById($mediaId) -- GET * getUserById($userID); -- GET * getMediaByArea($params); -- GET (Here $params must be "lat" and "lng"), (*9)

LIKES Section * postSetLikeMedia($mediaId) -- POST * getLikesByMedia($mediaId); -- GET * delUnsetLikesByMedia($mediaId); -- DELETE, (*10)

The Versions

24/03 2017

dev-master

9999999-dev

Instagram SDK

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

by Dima U