private async void Button_Clicked(object sender, EventArgs e) { try { var client = new ApiRest("http://www.mocky.io"); var loginResponse = await client.GetAsync <ResponseData>("/v2/5c9575723600006300941f57"); } catch (ApiException apiEx) { } catch (Exception ex) { } }