添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Page 1 / 1

Hi @bhagyat25

You can create a configuration screen with the necessary fields required to interact with the API calls for the 3rd-party (destination) system. You can create a custom screen according to your needs and use the API call to retrieve data from the destination system.

Sample screenshot of the configuration screen.

Hi @bhagyat25

You can create a configuration screen with the necessary fields required to interact with the API calls for the 3rd-party (destination) system. You can create a custom screen according to your needs and use the API call to retrieve data from the destination system.

Sample screenshot of the configuration screen.

Hi @jinin ,

I need graph code sample, how to call the API and how to catch the API results and assign values into the controls. Can you help me out?

Thanks

Hi @bhagyat25 ,

Here is the sample code calling a REST API call.

var options = new RestClientOptions( "<Your Base API Url here>" )
{
MaxTimeout = - 1 ,
};
var client = new RestClient(options);
var request = new RestRequest( "/v1/DistributionCenters" , Method.Get);
request.AddHeader( "Authorization" , "Bearer <Bearrer Token>" );
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

response.Content will contain the response. Based on the response you can Derserialize the response and use based on your requirement.

Hop this is Helpful.


Hi @praveenpo ,

Thanks for your response, But showing errors, No namespaces to add. Can you help me out?

You have to use the RestSharp dll and as reference.

Is that Nuget one?

RestSharp dll will be available in the bin folder for the website. You can add that to your solution.

Thanks got it

Hi @praveenpo ,

Still I got this error.

You can paste the error here, so that i can get some information to suggest

I already added RestSharp.dll from the bin folder

@bhagyat25 ,

for first issue with the latest RestSharp we dont need this you can directly use the Rest Client.

for second issue you can change from Get to GET that will solve your issue.

Scanning file for viruses.

Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.

This file cannot be downloaded

Sorry, our virus scanner detected that this file isn't safe to download.