C# Class instagrammer.MediaClient

Inheritance: BaseClient
ファイルを表示 Open project: jonezy/instagrammer Class Usage Examples

Public Methods

Method Description
Comment ( string mediaId, string text ) : ApiSingleResponse

Add's the comment to the media item http://instagram.com/developer/endpoints/comments/#post_media_comments

Comments ( string mediaId ) : ApiResponse

Get the full list of comments on the media http://instagram.com/developer/endpoints/comments/#get_media_comments

Like ( string mediaId ) : ApiSingleResponse

Set a like of the media by the currently authenticated user http://instagram.com/developer/endpoints/likes/#post_media_likes

Likes ( string mediaId ) : ApiResponse

Return a list of users who have liked this media http://instagram.com/developer/endpoints/likes/#get_media_likes

Media ( string mediaId ) : ApiSingleResponse

Get the details (full record) of the specified media http://instagram.com/developer/endpoints/media/#get_media

MediaClient ( string token )
Popular ( string clientId ) : ApiResponse

Finds the most popular media on instagram right now. http://instagram.com/developer/endpoints/media/#get_media_popular

Search ( string lat, string lng, string distance ) : ApiResponse

Search for media by longitude, latitude and distance http://instagram.com/developer/endpoints/media/#get_media_search

UnComment ( string mediaId, string commentId ) : ApiSingleResponse

Removes the specified comment from the media http://instagram.com/developer/endpoints/comments/#delete_media_comments

UnLike ( string mediaId ) : ApiSingleResponse

Remove a like on the media by the currently authenticated user http://instagram.com/developer/endpoints/likes/#delete_media_likes

Method Details

Comment() public method

Add's the comment to the media item http://instagram.com/developer/endpoints/comments/#post_media_comments
public Comment ( string mediaId, string text ) : ApiSingleResponse
mediaId string The id of the media object to add the comment to
text string The text of the comment
return ApiSingleResponse

Comments() public method

Get the full list of comments on the media http://instagram.com/developer/endpoints/comments/#get_media_comments
public Comments ( string mediaId ) : ApiResponse
mediaId string The id of the media object to get the details for
return ApiResponse

Like() public method

Set a like of the media by the currently authenticated user http://instagram.com/developer/endpoints/likes/#post_media_likes
public Like ( string mediaId ) : ApiSingleResponse
mediaId string The id of the media to like
return ApiSingleResponse

Likes() public method

Return a list of users who have liked this media http://instagram.com/developer/endpoints/likes/#get_media_likes
public Likes ( string mediaId ) : ApiResponse
mediaId string The id of the media to get the list of liking users for.
return ApiResponse

Media() public method

Get the details (full record) of the specified media http://instagram.com/developer/endpoints/media/#get_media
public Media ( string mediaId ) : ApiSingleResponse
mediaId string The id of the media object to get the details for
return ApiSingleResponse

MediaClient() public method

public MediaClient ( string token )
token string

Popular() public method

Finds the most popular media on instagram right now. http://instagram.com/developer/endpoints/media/#get_media_popular
public Popular ( string clientId ) : ApiResponse
clientId string
return ApiResponse

Search() public method

Search for media by longitude, latitude and distance http://instagram.com/developer/endpoints/media/#get_media_search
public Search ( string lat, string lng, string distance ) : ApiResponse
lat string
lng string
distance string
return ApiResponse

UnComment() public method

Removes the specified comment from the media http://instagram.com/developer/endpoints/comments/#delete_media_comments
public UnComment ( string mediaId, string commentId ) : ApiSingleResponse
mediaId string The id of the media to remove the comment from
commentId string The id of the comment to rememove
return ApiSingleResponse

UnLike() public method

Remove a like on the media by the currently authenticated user http://instagram.com/developer/endpoints/likes/#delete_media_likes
public UnLike ( string mediaId ) : ApiSingleResponse
mediaId string The id of the media to remove the like from
return ApiSingleResponse