SyntaxFix
Write A Post
Hire A Developer
Questions
When it can be the same header for all requests or you dispose the client after each request you can use the DefaultRequestHeaders.Add option:
DefaultRequestHeaders.Add
client.DefaultRequestHeaders.Add("apikey","xxxxxxxxx");