HOW CAN I CONSUME MY API(APP ) IN A WAY OF USING RESTSHARP TO CONNECT WITH HTML?
AND WHICH CLASS SHOULD I USE.
[Activity (Label = "dvtest.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
private readonly RestClient restClient = new RestClient (@MY HTTP);
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
global::Xamarin.Forms.Forms.Init (this, bundle);
LoadApplication (new App ());
DevExpress.Mobile.Forms.Init ();
Console.WriteLine (restClient);
}
}
}
BUT IT DOES NOT CONNECT.