示例#1
0
        public LikesResponse LikeMedia(string id, string act)
        {
            var result   = ac.GetApi(string.Format("media/{0}/likes?access_token={1}", id, act), null);
            var response = Newtonsoft.Json.JsonConvert.DeserializeObject <LikesResponse>(result);

            return(response);
        }
        public string PostComment(string id, string _comment, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("text", _comment);
            var result = ac.GetApi(string.Format("media/{0}/comments?access_token={1}", id, act), parameters);

            return(result);
        }
        public RelationshipResponse PostRelationship(string id, string act, string action)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("action", action);
            var result   = ac.GetApi(string.Format("users/{0}/relationship?access_token={1}", id, act), parameters);
            var response = JsonConvert.DeserializeObject <RelationshipResponse>(result);

            return(response);
        }