Consume REST API using C#.Net

Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi Ricky,
Were you able to figure out how figure out?
Let me know, I have the exact same issue.
Copy link to clipboard
Copied
Can anybody guide me the code sample in C# how to call BC API from external application like from console application?
