# Example: Using the RestSharp library in the Invoke Code activity

> Say you need to execute the following C# code snippet with the Invoke Code activity:

Say you need to execute the following C# code snippet with the Invoke Code activity:

```
var client=new RestClient("https://jsonplaceholder.typicode.com");
```

Where `RestClient` is a class in the RestSharp namespace.

For the previous snippet to execute successfully, you need to install the RestSharp library and import the `RestSharp` namespace in your project.

* If your project is in Studio Web, follow the steps from [Importing new libraries in Studio Web.](https://docs.uipath.com/activities/other/latest/workflow/importing-new-libraries-studio-web)
* If your project is in Studio Desktop, follow the steps from [Importing new libraries in Studio Desktop](https://docs.uipath.com/activities/other/latest/workflow/importing-new-libraries-studio-desktop).
1. Select the **Azure** feed, then search for the **RestSharp** library and install it. The RestSharp library should be displayed in the Dependencies tree of the Project panel.
   :::note
   If the Official feed does not display your library, you need to add the feed where the library may be hosted.
   :::
2. In the **Main** window, switch to the **Imports** tab at the lower-left part.
3. Search for the generic `RestSharp` namespace. Select it to add it to the namespaces list.
4. Execute the activity.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-504754-c313787f.webp)
