Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 79144

RESTSHARP

$
0
0

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.


Viewing all articles
Browse latest Browse all 79144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>