Sending custom headers in the .NET client library


Assume that "service" is an instance of an API-specific service object.
GDataRequestFactory requestFactory = (GDataRequestFactory) service.RequestFactory;
requestFactory.CustomHeaders.Add("X-MyHeader: HeaderValue");

No comments: