public static async Task <string> GetVideo(int page) { const string RecentMovieInformation_Api = " http://route.showapi.com/255-1?showapi_appid=38524&showapi_sign=afccd492bbdd48d58e0be6b58fada87a&type=41&page={0}"; HttpClient httpclient = new HttpClient(); HttpResponseMessage response = new HttpResponseMessage(); string result = null; string Api = RecentMovieInformation_Api.Replace("{0}", page.ToString()); response = await httpclient.GetAsync(Api); result = await response.Content.ReadAsStringAsync(); return(result); }
public static async Task <string> GetRecentMovieInformationRequest(string city) { const string RecentMovieInformation_Api = "http://op.juhe.cn/onebox/movie/pmovie?key=bf900f647b1fa5a4f409bfd28530835e&city={0}"; HttpClient httpclient = new HttpClient(); HttpResponseMessage response = new HttpResponseMessage(); string result = null; string Api = RecentMovieInformation_Api.Replace("{0}", city); response = await httpclient.GetAsync(Api); result = await response.Content.ReadAsStringAsync(); return(result); }