I am trying to send this cUrl command through my C# code but I am not sure how to properly send the api key part
curl -X GET https://api.easypost.com/v2/api_keys
This is code I am trying to use but I am not sure how to send the api key through the C# code below.
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(@"https://api.easypost.com/v2/api_keys");
//Our http method is GET.
req.Method = "GET";
//Get the response.
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
//Some information about the response
//Now, we read the response (the string), and output it.
StreamReader result = new StreamReader(resp.GetResponseStream());