Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//taken from
using RestSharp;
using RestSharp.Authenticators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Request
class NounProjectAPI
void SimpleCall()
var baseUrl = new Uri("");
var client = new RestClient(baseUrl);
client.Authenticator = OAuth1Authenticator.ForRequestToken("CLIENT_KEY_HERE", "CLIENT_SECRET_HERE");
var request = new RestRequest("/icon/1", Method.GET);
IRestResponse response = client.Execute(request);
var content = response.Content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment