Esempio n. 1
0
 public Task <Result <SearchResult> > Search(string query) =>
 _authentication.GetAuthenticationHeader()
 .Then(x => _httpRequester.Get <SearchResult>(
           new Uri($"https://api.spotify.com/v1/search?q={HttpUtility.UrlEncode(query)}&type=track"),
           new HttpRequestInfo {
     Authentication = Some(x)
 }));
Esempio n. 2
0
 public async Task <Classifier> GetClassifierInformation(string classifierId, CancellationToken cancellationToken)
 {
     return(await httpRequester.Get <Classifier>($"{endPoint}/classifiers/{classifierId}"));
 }
Esempio n. 3
0
 public IRequestContentType Find(int id)
 {
     return(requester.Get(Resourse, id));
 }