Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Consume REST API using C#.Net

Guest
May 15, 2017 May 15, 2017

Hi Guys,

I need to create a C#.net console application which can get data from REST api.

So far I have found this: https://docs.worldsecuresystems.com/developers/apps/server-to-server-service , but this requires manual authentication. My problem is I need to run it automatically on a schedule, so I can't have someone entering login details all the time.

I have been able to consume SOAP API using C#.Net, but need to find a solution using REST APIs.

Has anyone been able to do this?

Any help is appreciated.

Thanks

Ricky

TOPICS
Developer
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 15, 2017 May 15, 2017

Hi Ricky,

You need to read the document again. It is Oauth 2.0

Once you have set up your secret, authorized, have your token etc then you can request renewal when required etc.

Look at the example:

web-apps-sdk/samples/bc-external-service at master · adobebc/web-apps-sdk · GitHub

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 29, 2017 Jun 29, 2017

Hi Ricky,

Were you able to figure out how figure out?

Let me know, I have the exact same issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2017 Oct 16, 2017
LATEST

Can anybody guide me the code sample in C# how to call BC API from external application like from console application?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines