Exemplo n.º 1
0
        public async Task <MediasResponse> GetPopularAsync()
        {
            string requestUri = String.Format("media/popular?access_token={0}", _AccessToken);

            var responseFetcher = new ResponseFetcher <MediasResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }
Exemplo n.º 2
0
        public async Task <MediaResponse> GetMediaByShortCodeAsync(string shortCode)
        {
            string requestUri = String.Format("media/shortcode/{0}?access_token={1}", shortCode, _AccessToken);

            var responseFetcher = new ResponseFetcher <MediaResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }
Exemplo n.º 3
0
        public async Task <UsersResponse> GetFollowingAsync(string userId)
        {
            string requestUri = String.Format("users/{0}/follows?access_token={1}", userId, _AccessToken);

            var responseFetcher = new ResponseFetcher <UsersResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }
Exemplo n.º 4
0
        public async Task <MediasResponse> GetMyLikedAsync(int count = 30)
        {
            string requestUri = String.Format("users/self/media/liked?access_token={0}&count={1}", _AccessToken, count);

            var responseFetcher = new ResponseFetcher <MediasResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }
Exemplo n.º 5
0
        public async Task <MediasResponse> GetRecentAsync(string userId, int count = 30)
        {
            string requestUri = String.Format("users/{0}/media/recent/?access_token={1}&count={2}", userId, _AccessToken, count);

            var responseFetcher = new ResponseFetcher <MediasResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }
Exemplo n.º 6
0
        public async Task <MediasResponse> GetRecentMediaByTagName(String tagname)
        {
            string requestUri = String.Format("tags/{0}/media/recent?access_token={1}", tagname, _AccessToken);

            var responseFetcher = new ResponseFetcher <MediasResponse>(API_SERVICE_URL);

            return(await responseFetcher.GetResponseAsync(requestUri).ConfigureAwait(false));
        }