Skip to content

Instantly share code, notes, and snippets.

@ShariqT
Created November 1, 2021 22:45
Show Gist options
  • Save ShariqT/c4dba54853e30fe5ef6325b9d549b058 to your computer and use it in GitHub Desktop.
Save ShariqT/c4dba54853e30fe5ef6325b9d549b058 to your computer and use it in GitHub Desktop.
RestSharp Example
var client = new RestClient("https://api.lob.com/v1");
client.Authenticator = new HttpBasicAuthenticator(Environment.GetEnvironmentVariable("LOB_API_KEY"), "");
var getRequest = new RestRequest("addresses");
var resp = client.Execute<LobAddressListResult>(getRequest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment