Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RestSharp Integration for Paystack.
var client = new RestClient("");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddHeader("authorization", "Bearer SECRET_KEY");
request.AddParameter("application/x-www-form-urlencoded", "", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment