public static string GetHostname(OAuth2Token token)
 {
     return(string.Format("{0}.sf-api.com", token.Subdomain));
 }
 public static void addAuthorizationHeader(HttpWebRequest request, OAuth2Token token)
 {
     request.Headers.Add(string.Format("Authorization: Bearer {0}", token.AccessToken));
 }