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¶
- Overview
- Quickstart
- Endpoints
- FAQ
- Developers
- API Reference
- Larabros\Elogram\Client
- Larabros\Elogram\Config
- Larabros\Elogram\Container
- Larabros\Elogram\Exceptions
- Larabros\Elogram\Exceptions\APIInvalidParametersError
- Larabros\Elogram\Exceptions\APINotAllowedError
- Larabros\Elogram\Exceptions\APINotFoundError
- Larabros\Elogram\Exceptions\CsrfException
- Larabros\Elogram\Exceptions\Exception
- Larabros\Elogram\Exceptions\IncompatibleResponseException
- Larabros\Elogram\Exceptions\OAuthAccessTokenException
- Larabros\Elogram\Exceptions\OAuthException
- Larabros\Elogram\Exceptions\OAuthForbiddenException
- Larabros\Elogram\Exceptions\OAuthParameterException
- Larabros\Elogram\Exceptions\OAuthPermissionsException
- Larabros\Elogram\Exceptions\OAuthRateLimitException
- Larabros\Elogram\Helpers
- Larabros\Elogram\Http
- Larabros\Elogram\Providers
- Larabros\Elogram\Repositories
- Larabros\Elogram\Repositories\AbstractRepository
- Larabros\Elogram\Repositories\CommentsRepository
- Larabros\Elogram\Repositories\LikesRepository
- Larabros\Elogram\Repositories\LocationsRepository
- Larabros\Elogram\Repositories\MediaRepository
- Larabros\Elogram\Repositories\TagsRepository
- Larabros\Elogram\Repositories\UsersRepository