/// <summary> /// Get information about a media object. /// </summary> /// <param name="mediaid"></param> /// <param name="accessToken"></param> /// <returns></returns> public InstagramResponse<InstagramMedia> GetMediaDetails(string mediaid, string accessToken) { Media objMedia = new Media(); return objMedia.MediaDetails(mediaid, accessToken); }
/// <summary> /// Like or Unlike the Media /// </summary> /// <param name="mediaid"></param> /// <param name="userid"></param> /// <param name="accessToken"></param> /// <returns></returns> public bool LikeToggle(string mediaid, string userid, string accessToken) { Media objMedia = new Media(); InstagramMedia media = objMedia.MediaDetails(mediaid, accessToken).data; if (media.user_has_liked) return DeleteLike(mediaid, userid, accessToken); else return PostUserLike(mediaid, userid, accessToken); }