Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Latest commit

 

History

History
49 lines (34 loc) · 1.06 KB

index.rst

File metadata and controls

49 lines (34 loc) · 1.06 KB

Documentation

Elogram is an "eloquent" way of accessing Instagram's API, for PHP 5.5+. It offers:

  • Simple interface for interacting with the web API. Use methods and arguments instead of cURL.
  • Provides an easy-to-use CSRF-protected solution for retrieving access tokens.
  • Well-tested
  • Extensible
  • Makes pagination a breeze.
use Larabros\Elogram\Client;

$client = new Client($clientId, $clientSecret, $accessToken, $redirectUrl);

header('Content-Type: application/json');
$response = $client->media()->search(51.503349, -0.252271);
echo json_encode($response->get());

$response = $client->users()->find('skrawg');
echo json_encode($response->get());

$response  = $client->users()->follows();
echo json_encode($response->get());

$response  = $client->paginate($response, 2);
echo json_encode($response->get());

User Guide

.. toctree::
    :maxdepth: 3

    overview
    quickstart
    endpoints
    faq
    developers
    Larabros/Elogram/index