Endpoints¶
Media¶
Constructor($id)¶
Initalize a new Media Class with an Id or empty,
$media = $instagram->media();
// with id set:
$media = $instagram->media(123);
Return¶
Media Returns new instance of Media Class
Properties¶
- id
intMedia_Id - data
StdClassprotected as soon as the object is synced with Instagram byget()this property holds the response data
If loaded you can access all properties send by Instagram like:
$username = $media->user->username
Methods¶
getByShortcode($shortcode)¶
Saves the result to the public parameter data
Return¶
Media Returns itself
comment($text)¶
Comments on the media object
- text Comment text
$media->comment($text);
Return¶
StdClass Returns Comment Object
Users¶
Constructor($id)¶
Initalize a new User Class with an Id or empty,
$user = $instagram->user();
// with id set:
$user = $instagram->user(123);
Return¶
User Returns new instance of User Class
Properties¶
- id
intUser_Id - data
StdClassprotected as soon as the object is synced with Instagram byget()this property holds the response data
If loaded you can access all properties send by Instagram like:
$username = $user->username
Methods¶
getMediaRecent($count,$minId,$maxId)¶
Requests recent media objects posted by the specified user
Parameter¶
- count (optional)
- minId (optional)
- maxId (optional)
$user->getMediaRecent($count,$minId,$maxId);
Return¶
Array Returns array of Media Objects
selfMediaRecent($count,$minId,$maxId)¶
Requests recent media objects posted by the authorized user
Parameter¶
- count (optional)
- minId (optional)
- maxId (optional)
$user->selfMediaRecent($count,$minId,$maxId);
Return¶
Array Returns array of User Objects
Locations¶
Constructor($id)¶
Initalize a new Location Class with an Id or empty,
$location = $instagram->location();
// with id set:
$location = $instagram->location(123);
Return¶
Location Returns new instance of Location Class
Properties¶
- id
intLocation_Id - data
StdClassprotected as soon as the object is synced with Instagram byget()this property holds the response data
If loaded you can access all properties send by Instagram like:
$latitude = $location->latitude
Methods¶
recentMedia($minTagId,$maxTagId)¶
Properties¶
- minTagId (optional)
- maxTagId (optional)
Return¶
Array Returns array of Media Objects
Relationships¶
Constructor()¶
Initalize a new Relationship Class,
$relationship = $instagram->relationship();
Return¶
Relationship Returns new instance of Relationship Class
Methods¶
follows()¶
Returns User the authorized User is following
Return¶
Array Returns array of User Objects
followers()¶
Returns User who are following the authorized User
Return¶
Array Returns array of User Objects
followingRequests()¶
Returns all open following requests.
with()¶
Get information about a relationship to another user. Relationships are expressed using the following terms in the response: outgoing_status: Your relationship to the user. Can be 'follows', 'requested', 'none'. incoming_status: A user's relationship to you. Can be 'followed_by', 'requested_by', 'blocked_by_you', 'none'.
Tags¶
Constructor($tagname)¶
Properties¶
- id
intTag name - data
StdClassprotected as soon as the object is synced with Instagram byget()this property holds the response data
If loaded you can access all properties send by Instagram like:
$media_count = $tag->media_count
Initalize a new Tag Class with an Tagname or empty,
$tag = $instagram->tag();
// with id set:
$tag = $instagram->tag(123);
Return¶
Tag Returns new instance of Tag Class
Comments & Likes¶
Both of these Endpoints are embedded into the Media Class