This code example best suits people with at least beginner's experience using the C# programming language.
To run this code you'll need a C# compiler such as Visual Studio. You can follow this tutorial to create a simple Visual Basic console application.
You should also have a Smartproxy account with access to the dashboard to get your credentials and endpoint information.
The example is built using Visual Studio. You can run it by following these steps:
- Create a new Console App.
- Using a terminal of your choice, navigate to the project's directory.
- Copy the code from here or run this cURL command to download the code:
curl https://raw.githubusercontent.com/Smartproxy/Smartproxy/master/csharp/csharp.cs > csharp.cs
- You should see a new file named csharp.cs in your project folder.
To run this C# example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:
You should see an IP address in the console window if everything was set up correctly.
Email - sales@smartproxy.com