Skip to main content
ByrneReese
Community Manager
Product Manager
July 20, 2023

Help with the RingOut code sample in Getting Started

  • July 20, 2023
  • 7 replies
  • 1632 views

Welcome to the home of the RingCentral developer community, where developers and users come together to ask questions, seek support, and work together to get the most out of RingCentral's unified communication platform.

This article is provided to developers going through the getting started experience accessible from within the RingCentral Developer Console and needing help specifically with the "Initiate a phone call" code sample.

Initiate a Phone Call Screenshot

I am receiving an error when I run my code sample

The code sample provided for you is 100% complete and ready to go. You should not need to edit it in any way.

However, if you are still receiving an error, check the following:

  • Make sure you installed the SDK.

  • If the error message relates to a missing library or a file that cannot be found, return to Step 2 on the Making a Simple API Call page and follow the instructions for your preferred programming language to properly install the RingCentral SDK.

SDK Installation Screenshot


I am experiencing a different problem

If the above content did not provide you with a solution, please reach out to our Developer Support team and tell us more about the specific issue you are struggling with. We can then update this page to better help future developers.

We also invite you to share your feedback with us by posting a comment on this article so that you can better share your knowledge with other RingCentral developers.

    7 replies

    The First Step
    March 26, 2025

    Using c#,  I followed the instructions for .net 2.1   and  Nuget package  RingCentral,net 4.1.0

    The sample code given by the website will not compile.

    The error is on this line of code

               restClient.Authorize(JWT_TOKEN).Wait();

    Error (active)    CS1503    Argument 1: cannot convert from 'string' to 'RingCentral.GetTokenRequest'    RingDemo    C:\Users\joels\source\repos\RingDemo\RingDemo\Pages\Contact.cshtml.cs    39        
     

     

    PhongVu
    Community Manager
    Community Manager
    March 26, 2025

    Using c#,  I followed the instructions for .net 2.1   and  Nuget package  RingCentral,net 4.1.0

    The sample code given by the website will not compile.

    The error is on this line of code

               restClient.Authorize(JWT_TOKEN).Wait();

    Error (active)    CS1503    Argument 1: cannot convert from 'string' to 'RingCentral.GetTokenRequest'    RingDemo    C:\Users\joels\source\repos\RingDemo\RingDemo\Pages\Contact.cshtml.cs    39        
     

     

    Please try this sample code

    https://developers.ringcentral.com/guide/voice/ringout#c#

    The First Step
    March 27, 2025

    That worked,  

    The problem was that I followed the instructions for creating a new Visual Studio project which say to use .NET 2.1 and RingCentral 4.1.0.

    I created a new project with .netcore 8 and it works.

     

    Can you update the web page instruction which currently say this

    Create a Visual Studio project

    • Choose Console Application .Net Core -> App
    • Select Target Framework .NET Core 2.1
    • Enter project name "Call_Ringout"
    • Add NuGet package RingCentral.Net (4.1.0) SDK
    PhongVu
    Community Manager
    Community Manager
    March 27, 2025

    That worked,  

    The problem was that I followed the instructions for creating a new Visual Studio project which say to use .NET 2.1 and RingCentral 4.1.0.

    I created a new project with .netcore 8 and it works.

     

    Can you update the web page instruction which currently say this

    Create a Visual Studio project

    • Choose Console Application .Net Core -> App
    • Select Target Framework .NET Core 2.1
    • Enter project name "Call_Ringout"
    • Add NuGet package RingCentral.Net (4.1.0) SDK

    It should work with Core 2.1 and above. At least 2.1 is what I am using. I think the new SDK does not like this way of calling asynchronous function.

    restClient.Authorize(JWT_TOKEN).Wait();

    Function is now Task and called differently.

    await restClient.Authorize("RC_USER_JWT");
    await call_ringout();

     

    New Participant
    April 24, 2026

    Failed to run the sample app -  Invalid client application: [VwDJcurad8XbFzWTpNwOas]. Would you please take a look?

    New Participant
    April 24, 2026

    Trying to create an app using C# to make first call with the following client ID (client secret and jwt not shown here).

            static String SERVER_URL = "https://platform.ringcentral.com";
            static String CLIENT_ID = "VwDJcurad8XbFzWTpNwOas";

     

    Got the error.

    Unhandled exception. System.AggregateException: One or more errors occurred. (One or more errors occurred. (Response:
    StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
    {
      Date: Fri, 24 Apr 2026 15:00:31 GMT
      Connection: keep-alive
      Server: cloudflare
      Vary: Accept-Encoding
      Vary: Origin
      Vary: Access-Control-Request-Method
      Vary: Access-Control-Request-Headers
      WWW-Authenticate: Basic realm="RingCentral REST API", error="invalid_client", error_description="Invalid client application: [VwDJcurad8XbFzWTpNwOas]"
      RCRequestId: 568dc7c4-3fee-11f1-8f11-0050568d5bb1
      Pragma: no-cache
      Cache-Control: no-store
      AceRoutingKey: iad41-c01-ace01-69d5b684ff-8x9ds_10.120.173.247
      RoutingKey: SJC01P02
      cf-cache-status: DYNAMIC
      Set-Cookie: __cf_bm=yGTNzItmf81MyFyRH6zetDMYDsxrmWcmJ7W5iCCu3Wk-1777042831.1904476-1.0.1.1-jbF33VeqDOn8oJZhdk2hXoY5RM4TOBT4tY5hvRHnQQGuc.r9QXmEHxCluWGYbQZbCqBfvZf9.m1xCpbMyfhWFLZLEl_LdWi1_BLdTUjsk3OixaMNRKpx89PMCOFG36hy; HttpOnly; Secure; Path=/; Domain=platform.ringcentral.com; Expires=Fri, 24 Apr 2026 15:30:31 GMT
      Set-Cookie: _cfuvid=UyyT0Jnk6dEojI4DZyeJaBluddUqIGogVpmF2n6gO7I-1777042831.1904476-1.0.1.1-_Oez8ZmmrVnAr30XjF0VMco8jXVl970pVedhXllhCec; HttpOnly; SameSite=None; Secure; Path=/; Domain=platform.ringcentral.com
      CF-RAY: 9f15fa5ee8333a83-MIA
      Content-Type: application/json
      Content-Length: 355
      Content-Language: en
    }
    Content: {
      "error" : "invalid_client",
      "error_description" : "Invalid client application: [VwDJcurad8XbFzWTpNwOas]",
      "errors" : [ {
        "errorCode" : "OAU-153",
        "message" : "Invalid client application: [VwDJcurad8XbFzWTpNwOas]",
        "parameters" : [ {
          "parameterName" : "client_id",
          "parameterValue" : "VwDJcurad8XbFzWTpNwOas"
        } ]
      } ]
    }

    Request:
    Method: POST, RequestUri: 'https://platform.ringcentral.com/restapi/oauth/token', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers:
    {
      X-User-Agent: Unknown/0.0.1 RingCentral.Net/6.5.0
      Authorization: Basic VndESmN1cmFkOFhiRnpXVHBOd09hczphN1NBNllpWGRMcWJsa2Q1OVlqRTFrM1NKSk42Z29PMWJkZHBUYXMxS3FxYQ==
      Content-Type: application/x-www-form-urlencoded
      Content-Length: 794
    }

     

     

    PhongVu
    Community Manager
    Community Manager
    May 1, 2026

    Trying to create an app using C# to make first call with the following client ID (client secret and jwt not shown here).

            static String SERVER_URL = "https://platform.ringcentral.com";
            static String CLIENT_ID = "VwDJcurad8XbFzWTpNwOas";

     

    Got the error.

    Unhandled exception. System.AggregateException: One or more errors occurred. (One or more errors occurred. (Response:
    StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
    {
      Date: Fri, 24 Apr 2026 15:00:31 GMT
      Connection: keep-alive
      Server: cloudflare
      Vary: Accept-Encoding
      Vary: Origin
      Vary: Access-Control-Request-Method
      Vary: Access-Control-Request-Headers
      WWW-Authenticate: Basic realm="RingCentral REST API", error="invalid_client", error_description="Invalid client application: [VwDJcurad8XbFzWTpNwOas]"
      RCRequestId: 568dc7c4-3fee-11f1-8f11-0050568d5bb1
      Pragma: no-cache
      Cache-Control: no-store
      AceRoutingKey: iad41-c01-ace01-69d5b684ff-8x9ds_10.120.173.247
      RoutingKey: SJC01P02
      cf-cache-status: DYNAMIC
      Set-Cookie: __cf_bm=yGTNzItmf81MyFyRH6zetDMYDsxrmWcmJ7W5iCCu3Wk-1777042831.1904476-1.0.1.1-jbF33VeqDOn8oJZhdk2hXoY5RM4TOBT4tY5hvRHnQQGuc.r9QXmEHxCluWGYbQZbCqBfvZf9.m1xCpbMyfhWFLZLEl_LdWi1_BLdTUjsk3OixaMNRKpx89PMCOFG36hy; HttpOnly; Secure; Path=/; Domain=platform.ringcentral.com; Expires=Fri, 24 Apr 2026 15:30:31 GMT
      Set-Cookie: _cfuvid=UyyT0Jnk6dEojI4DZyeJaBluddUqIGogVpmF2n6gO7I-1777042831.1904476-1.0.1.1-_Oez8ZmmrVnAr30XjF0VMco8jXVl970pVedhXllhCec; HttpOnly; SameSite=None; Secure; Path=/; Domain=platform.ringcentral.com
      CF-RAY: 9f15fa5ee8333a83-MIA
      Content-Type: application/json
      Content-Length: 355
      Content-Language: en
    }
    Content: {
      "error" : "invalid_client",
      "error_description" : "Invalid client application: [VwDJcurad8XbFzWTpNwOas]",
      "errors" : [ {
        "errorCode" : "OAU-153",
        "message" : "Invalid client application: [VwDJcurad8XbFzWTpNwOas]",
        "parameters" : [ {
          "parameterName" : "client_id",
          "parameterValue" : "VwDJcurad8XbFzWTpNwOas"
        } ]
      } ]
    }

    Request:
    Method: POST, RequestUri: 'https://platform.ringcentral.com/restapi/oauth/token', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers:
    {
      X-User-Agent: Unknown/0.0.1 RingCentral.Net/6.5.0
      Authorization: Basic VndESmN1cmFkOFhiRnpXVHBOd09hczphN1NBNllpWGRMcWJsa2Q1OVlqRTFrM1NKSk42Z29PMWJkZHBUYXMxS3FxYQ==
      Content-Type: application/x-www-form-urlencoded
      Content-Length: 794
    }

     

     

    This app client id “VwDJcurad8XbFzWTpNwOas”  (app name “Demonstration App”) has been suspended. I don’t know the reason why it was suspended. But that was the reason in your case.

    You can login the RingCentral developers portal to create a new app for your account and test.