Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async void Getasdas()
- {
- HttpClient client = new HttpClient();
- client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
- UserList user = new UserList();
- var response = await client.GetAsync("http://192.168.0.110/mh_api/v1/rooms/1");
- var responseBody = await response.Content.ReadAsStringAsync();
- }
Add Comment
Please, Sign In to add comment