Created
November 1, 2021 22:45
-
-
Save ShariqT/c4dba54853e30fe5ef6325b9d549b058 to your computer and use it in GitHub Desktop.
RestSharp Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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