Xamarin Forms and RestSharp Library

Grab the mobile one. It doesn’t care if it’s Oreo, Marshmallow or whatever is next. REST is generic. Works for IOS too

2 Likes

Seems to have an issue with me using 8.1.

Try the standard instead.

That one worked.

yeah Standard is what you should use for Xamarin

we just updated it too :slight_smile:

We should put together some docs… but I’m lazy. If you can’t figure it out let me know and I’ll get you something,

1 Like

Here’s a quick walk through

EpicorRest.AppPoolHost = "your.tld.server";
EpicorRest.AppPoolInstance = "yourEpicorInstance";
EpicorRest.UserName = "epicor";
EpicorRest.Password = "epicor";
EpicorRest.IgnoreCertErrors = true;

//get
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add($"filter", "ABCCode eq 'A'");
dynamic abcData = EpicorRest.DynamicGet("Erp.BO.EmpBasicSvc", "List", dic);

//GetJSON String
string json = EpicorRest.DynamicGetJSON("Erp.BO.EmpBasicSvc", "List", dic);


image

You got version 1.1.4.1? of the nuget?
If not you’ll need to update to it (we just published it)

Ah–okay. Got it!

It doesn’t like me. :frowning:

Without a lot more troubleshooting… I have no clue why its doing that. We use this all the time without issue.
This nuget should only be in your xamarin project (Standard-library) not inside the Android project.
Android project pulls from the standard library to get what it needs.

1 Like

aaron,

have you taken any of the classes from xamarin university? These are really helpful, I’ve even taken some of their paid classes and they were extremely cost beneficial in getting jump started. Xamarin can be kinda deep when you first jump in.

@rbucek I have taken a few on LinkedIn Learning and Googled a bunch.
I can make a rest call and have it push to the view using a test API, but I’m having issues with certificates when I try and do anything with my Epicor environment.

Remove the nuget from Android project
only work in the xamarin project. Don’t touch the android project (ever… ok sometimes but hardly ever)

I don’t think it’s in the Android project, is it?

image

It was on the other screenshot you shared. Or maybe I’m seeing thigns…

Ah–I see. I have it installed in both.

Looks like this may be an issue with the “Live Player” app I was using to run it instead of an emulator.

oh yeah, LivePlayer == the suck. use the emulator.

I can’t because I don’t have the latest Windows update and I’m restricted by our work network. :frowning:

image

1 Like