In Python I can successfully make a request (with authorization passing) by doing:
def send_request(self, url, public_key, secret_key):
session = requests.session()
session.auth = (public_key, secret_key)
return session.get(url)
I'm trying to replicate this in C# but it's not authorizing:
RestClient client = new RestClient(url);
RestRequest request = new RestRequest(url_stuff, Method.GET);
request.AddHeader(public_key, secret_key);
return client.Execute(request).Content;
What am I missing here?