Giter Club home page Giter Club logo

php-instagram-lib's Introduction

#PHPIRT

PHP Instagram implementation

###Disclaimer This an in ultra-alpha library, but it works. It's just a piece of code I've created to play along with the Instagram Real Time API

Required libraries

You'll need to have the curl library installed along with PHP.

We also use curl library from shuber

If you git clone --recursive [email protected]:aseba/php-instagram-lib.git everyhing should be working fine

How to use the REAL TIME API

You will need an instagram client id and client secret. Get it here.

In order to use this library you will need to set it somewhere where the callback.php file can be accessible by instagram servers

test.php file has an example on usage for the basic subscriptions calls

To configure the callback usage you must create a new class extending SubscriptionProcessor in phpirt.php file and redefine the public static function process($data){} function. You can see an example at callback.php file

Example

$i = new InstagramRealTime(INSTAGRAM_KEY, INSTAGRAM_SECRET);
$photos = $i->generic("/tags/$hashtag/media/recent");

php-instagram-lib's People

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.