question

jocab4457 avatar image
jocab4457 asked jocab4457 answered

HTTP Status Code: NotFound

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

sdk
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jocab4457 avatar image
jocab4457 answered
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

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jocab4457 avatar image
jocab4457 answered
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

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys