예제 #1
0
        public async Task <FindResult> Find(string externalId, ExternalSource source)
        {
            var request = new Request($"find/{externalId}", BaseUri, HttpMethod.Get);

            request.FullUri = request.FullUri.AddQueryParameter("api_key", ApiToken);
            AddRetry(request);

            request.AddQueryString("external_source", source.ToString());

            return(await Api.Request <FindResult>(request));
        }
예제 #2
0
        public static TMDbFindResult TMDbFind(string aId, ExternalSource aSourceId)
        {
            string lResponse = GetFromTmdb(string.Format(TmdbURIs.apiFind, aId, aSourceId.ToString()));

            return(lResponse.FromJSON <TMDbFindResult>());
        }
예제 #3
0
 public static TMDbFindResult TMDbFind(string id, ExternalSource sourceId)
 {
     string response = GetJson(string.Format(apiFind, id, sourceId.ToString()));
     return response.FromJson<TMDbFindResult>();
 }
예제 #4
0
        public static TMDbFindResult TMDbFind(string id, ExternalSource sourceId)
        {
            string response = GetJson(string.Format(apiFind, id, sourceId.ToString()));

            return(response.FromJson <TMDbFindResult>());
        }