public SearchResult Search(string query, Enums.eSearchType type, Enums.eSearchExt ext, int page = 1) { string url = $"{_baseURL}search/{query}/page/{page}?oauth_token={_accessToken}"; string json = _client.DownloadString(url); return(SearchResultParser(json)); }
public static SearchResult Search(string accessToken, string query, Enums.eSearchType type, Enums.eSearchExt ext, int page) { string url = $"{_baseURL}search/{query}/page/{page}?oauth_token={accessToken}"; using (WebClient client = new WebClient()) { string json = client.DownloadString(url); return(SearchResultParser(json)); } }