compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (33)

View Page History
{card}


{deck}

Get basic information about a user.
{code:php}
<?php
$instagram = new Instagram($config);
$popular = $instagram->getUser(3847232);
{code}
|UC-06 Tags||

See the authenticated user's feed.
{code:php} {deck:id=Tags}
$instagram = new Instagram($config);
$popular = $instagram->getUserFeed(100, 90);
{code}

Get the most recent media published by a user.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getUserRecent(3847232);
{code}

Search for a user by name.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->searchUser('Mauricio');
{code}


||UC-02 Relationships||

Get the list of users this user follows.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getUserFollows(3847232);
{code}

Get the list of users this user is followed by.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getUserFollowedBy(3847232);
{code}

List the users who have requested this user's permission to follow.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getUserRequestedBy();
{code}

Get information about the current user's relationship (follow/following/etc) to another user.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getUserRelationship(3847232);
{code}

{code:php}
class Zend_Service_Instagram_Exception extends Zend_Service_Exception {}
{code}

||UC-03 Media||

Get information about a media object.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getMedia(87319873891);
{code}

Search for media in a given area.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->mediaSearch(3.3727468, -0.21312389);
{code}

Get a list of what media is most popular at the moment.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getPopularMedia();
{code}


||UC-04 Comments||

Get a full list of comments on a media.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getMediaComments(87319873891);
{code}

Create a comment on a media.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->postMediaComment(87319873891, 'A beautiful landscape');
{code}

Remove a comment either on the authenticated user's media or authored by the authenticated user.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->deleteComment(87319873891, 2);
{code}

{code:php}
class Zend_Service_Instagram_Exception extends Zend_Service_Exception {}
{code}


||UC-05 Likes||

Get a list of users who have liked this media.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getLikes(87319873891);
{code}

Set a like on this media by the currently authenticated user.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->postLike(87319873891);
{code}

Remove a like on this media by the currently authenticated user.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->removeLike(87319873891);
{code}

||UC-06 Tags||

{card:label=Get Tags}
Get information about a tag object.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getTags('landscape');
{code} $instagram = new Instagram($config); 
$tags = $instagram->getTags('landscape'); 
{code}
{card}

{card:label=Get Recent Tags}
Get a list of recently tagged media.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getRecentTags('landscape');
{code} $instagram = new Instagram($config); 
$recentTags = $instagram->getRecentTags('landscape');
{code}
{card}

{card:label=Search Tags}
Search for tags by name.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->searchTags('new york');
{code} $instagram = new Instagram($config); 
$tags = $instagram->searchTags('new york');
{code}
{card}

||UC-07 Locations||
{deck}

|UC-07 Locations||

{deck:id=Locations}
{card:label=Get Location Info}
Get information about a location. tag object.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getLocation(1);
{code} $instagram = new Instagram($config); 
$locationInfo = $instagram->getLocation(1); 
{code}
{card}

{card:label=Get Recent Media At Location}
Get a list of recent media objects from a given location.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->getLocationRecentMedia(1);
{code} $instagram = new Instagram($config); 
$recentMedia = $instagram->getLocationRecentMedia(1); 
{code}
{card}

{card:label=Search Location}
Search for a location by name and geographic coordinate.
{code:php}
$instagram = new Instagram($config);
$popular = $instagram->searchLocation(3.3727468, -0.21312389);
{code} $instagram = new Instagram($config); 
$location = $instagram->searchLocation(3.3727468, -0.21312389); 
{code}
{card}

{deck}


{zone-data}