question

jocab4457 avatar image
jocab4457 asked ·

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
aaa
1 |1000 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.
Share
1 |1000 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

Share
1 |1000 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.
Share
1 |1000 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

Share
1 |1000 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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