HTTP Status Code: NotFound

  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)
Hi, developers

i am authenticating my web server application using the code below in c#

                 string AppKey = "my app key";
                string AppSecret = "my app secret key";
                var Serverurl = @"https://platform.devtest.ringcentral.com/restapi/oauth/token";
                string AppName = "FaxOutApp";
                string AppVersion = "0.0.1";
                SDK sdk = new SDK(Base64Encode(AppKey), Base64Encode(AppSecret), Serverurl, AppName, AppVersion);
                string UserName = "16266718052";
                string Extension = "101";
                string Password = "my password";
                var response = sdk.Platform.Login(UserName, Extension, Password, false);

here response throw an error of HTTP Status Code : Not Found

can any one help me for this.

any help will be appreciated.
Thanks
Photo of Jocab

Jocab

  • 194 Points 100 badge 2x thumb
  • sad

Posted 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 8,492 Points 5k badge 2x thumb
This repository is recommended: https://github.com/ringcentral/ringcentral-csharp-client  It's more user friendly. You can follow its readme file to get your code up and running.
Photo of Jocab

Jocab

  • 194 Points 100 badge 2x thumb
Hi Tyler,
thanks for you quick reply. 
when i install that repository through NuGet it throw a dependency error
here is its description

install-Package : 'Flurl.Http' already has a dependency defined for 'Newtonsoft.Json'.

how can i resolve this issue. ? 
Thanks
Photo of Tyler Long

Tyler Long, Official Rep

  • 8,492 Points 5k badge 2x thumb
Is it a warning or error? Could you please post a screenshot? If it's a warning, you can just ignore it. I haven't seen this before.
Photo of Jocab

Jocab

  • 194 Points 100 badge 2x thumb
Hi Tyler,

actually i was using old version of NuGet now its working fine i have installed latest version of it.

Thanks for your response