コード例 #1
0
 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));
     }
 }
コード例 #2
0
 public static HttpOperation WithUserToken(this HttpOperation client, string userToken)
 {
     if (userToken != null)
     {
         client.WithHeader("Appacitive-User-Auth", userToken);
     }
     return(client);
 }
コード例 #3
0
 public static HttpOperation WithEnvironment(this HttpOperation client, Environment env)
 {
     return(client.WithHeader("Appacitive-Environment", env.ToString()));
 }
コード例 #4
0
 public static HttpOperation WithApiKey(this HttpOperation client, string apiKey)
 {
     return(client.WithHeader("Appacitive-Apikey", apiKey));
 }