I have setup my service with API Key authorization, I am now trying to add the header key pair however WebRequest.Headers does not support the Add method in a Portable Class Library.
This is the code from the examples I have found on the web, however Add is not a valid method in a Profile 7 PCL:
this.RequestFilter = req => { req.Headers.Add(“x-APIKey”, “”); };
Any suggestions on how to accomplish this in another way for a Xamarin.Forms compliant PCL?
Thanks
M