public MediaResult GetMedia(string id, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            var url      = String.Format("media/{0}", id);
            var result   = ac.ApiCall(url, parameters);
            var response = JsonConvert.DeserializeObject <MediaResult>(result);

            return(response);
        }
        public TagResult GetTag(string tag, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            var url      = String.Format("tags/{0}", tag);
            var result   = ac.ApiCall(url, parameters);
            var response = JsonConvert.DeserializeObject <TagResult>(result);

            return(response);
        }
        public UserProfiles GetUserFollows(string id, string act, string next_cursor = "1")
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            if (next_cursor != "1")
            {
                parameters.Add("cursor", next_cursor);
            }
            var result   = ac.ApiCall(string.Format("users/{0}/follows", id), parameters);
            var response = JsonConvert.DeserializeObject <UserProfiles>(result);

            return(response);
        }
Example #4
0
        public LikesResponse GetMediaLikes(string id, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            var url      = String.Format("media/{0}/likes", id);
            var result   = ac.ApiCall(url, parameters);
            var response = Newtonsoft.Json.JsonConvert.DeserializeObject <LikesResponse>(result);

            return(response);
        }
        public UserProfile GetUser(string id, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            var result   = ac.ApiCall(string.Format("users/{0}", id), parameters);
            var response = JsonConvert.DeserializeObject <UserProfile>(result);

            return(response);
        }
        public LocationResponse GetPlace(string id, string act)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("access_token", act);
            var url      = String.Format("locations/{0}", id);
            var result   = ac.ApiCall(url, parameters);
            var response = JsonConvert.DeserializeObject <LocationResponse>(result);

            return(response);
        }