calling WC1 API from CSharp is resulting into 401 unauthorised

I am trying to call WC1 /v2/refences/countries API from CSharp from Windows environment.

The response is 401 unauthorised. pls guide me where things are going wrong. thank you!
wc1-api-call.png

Best Answer

  • Hi @ashwinikumar.


    My initial assessment is that Date should be generated as GMT instead of manually adding GMT to the string. This could be the cause of the 401 error. I have also attached the C# code for authorization provided by World-Check for your reference - csharp.zip. This may help to solve this error. Thank you.

    Regards,

    Ssneha Balasubramanian.


Answers