--- title: "Generating Credentials With C#" slug: "generating-credentials-with-c" updated: 2023-11-07T19:50:30Z published: 2023-11-07T19:50:30Z canonical: "wiki.cobblestonesoftware.com/generating-credentials-with-c" --- > ## Documentation Index > Fetch the complete documentation index at: https://wiki.cobblestonesoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Generating Credentials With C# ## How to Generate Credentials (C#) #### Getting Started You will need to download the zip file [**CobbleStone®'s REST API Overview and Sample Application**](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/REST%20API%202.0%20Sample%20Application%2020211008.zip) for access to endpoints. #### REST API URLs To find your API URL: SaaS Clients can view the [How To: Locate API Information (SaaS Clients)](/v1/docs/how-to-locate-api-information-saas) article Deployed Clients can view the [How To: Locate API Information (Deployed Clients)](/v1/docs/how-to-locate-api-information-deployed) article #### Setting Up in Visual Studio UnZip the file downloaded from the **Getting Started** section above. Open Visual Studio and make sure you have the RestSharp DLL via NuGet. It is strongly recommended (but not required) to use the [RestSharp DLL via NuGet version 106.15.0](https://www.nuget.org/packages/RestSharp#versions-body-tab) to consume our API as it makes it easier with fewer lines of code. Must use Version 106.15.0This app depends on RestSharp version 106.15.0 from NuGet as **newer versions will cause the code to break**. ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1667498495622.png) Select View > Open Solution Explorer (if it isn’t already visible) and open the frmMain.cs class file ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1667402348983.png) #### Getting Authorized Right click the Text field ClientID, click Properties, replace the value with your Client ID ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669045362722.png) Repeat this step with Client Secret Repeat this step with the URL Press Start ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1667498851901.png) #### Build and Test Access The app will build and click Authenticate ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669045671924.png) Your results will appear below: ![](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/image-1669045894729.png)