public static HttpOperation WithUserToken(this HttpOperation client, string userToken)
 {
     if (userToken != null)
     {
         client.WithHeader("Appacitive-User-Auth", userToken);
     }
     return(client);
 }
 public static HttpOperation WithAppacitiveKeyOrSession(this HttpOperation client, string apiKey, string session, bool useApiSession)
 {
     if (useApiSession == true)
     {
         return(client.WithHeader("Appacitive-Session", session));
     }
     else
     {
         return(client.WithHeader("Appacitive-Apikey", apiKey));
     }
 }
 public static HttpOperation WithEnvironment(this HttpOperation client, Environment env)
 {
     return(client.WithHeader("Appacitive-Environment", env.ToString()));
 }
Exemplo n.º 4
0
 public static HttpOperation WithApiKey(this HttpOperation client, string apiKey)
 {
     return(client.WithHeader("Appacitive-Apikey", apiKey));
 }