Building the client library requires:
- .NET SDK 7.0 or higher - Installation
- Postman v10 - Installation
To copy project to your computer copy link of the repository, open command prompt, go to the location where project will be copied and execute git clone command:
git clone https://github.com/kyriba/dev-portal-basic-CSharp-Postman-App-sample.git
Then open command prompt and go to your project directory, for example:
cd dev-portal-basic-CSharp-Postman-App-sample
cd root
After that, start your project by performing the following steps:
-
Open Postman, select the desired Collection, authenticate through "Get New Access Token" request and run the request that you want to provide in the Application:
-
Proceed to "Code snippet" section.
-
In "Code snippet", proceed to the dropdown list with different programming languages, where "cURL" is set by default, and choose "C# - RestSharp" from the list.
-
There, copy the snippet without the last line to clipboard:
-
In the root of the local folder for this application, open the App.cs file.
-
Paste copied code below the underlined commentary:
- Execute this command in Terminal in root folder of cloned app:
dotnet run
If everything was done accordingly with provided steps, the result is going to be printed in the command prompt.
version | compatible with .NET | compatible with Postman |
---|---|---|
1.0.0 | 5.0 or higher | v8 or higher |
1.1.0 | 7.0 or higher | v10 or higher |