Beispiel #1
0
 public MixpanelExport(string apiKey, string apiSecret, IMixpanelHttp http = null, ExportOptions options = null)
 {
     this._http      = http ?? new MixpanelHttp();
     this._apiKey    = apiKey;
     this._apiSecret = apiSecret;
     this._options   = options ?? new ExportOptions();
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new Mixpanel tracker for a given API token
 /// </summary>
 /// <param name="token">The API token for MixPanel</param>
 /// <param name="http">An implementation of IMixpanelHttp, <see cref="MixpanelHttp"/>
 /// Determines if class names and properties will be serialized to JSON literally.
 /// If false (the default) spaces will be inserted between camel-cased words for improved
 /// readability on the reporting side.
 /// </param>
 /// <param name="options">Optional: Specific options for the API <see cref="TrackerOptions"/></param>
 public MixpanelTracker(string token, IMixpanelHttp http = null, TrackerOptions options = null)
     : base(token, http)
 {
     _options = options ?? new TrackerOptions();
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new Mixpanel Engage client for a given API token
 /// </summary>
 /// <param name="token">The API token for MixPanel</param>
 /// <param name="http">Optional: An implementation of IMixpanelHttp, <see cref="MixpanelHttp"/>
 /// Determines if class names and properties will be serialized to JSON literally.
 /// If false (the default) spaces will be inserted between camel-cased words for improved
 /// readability on the reporting side.
 /// </param>
 /// <param name="options">Optional: Specific options for the API <see cref="EngageOptions"/></param>
 public MixpanelEngage(string token, IMixpanelHttp http = null, EngageOptions options = null)
     : base(token, http)
 {
     _options = options ?? new EngageOptions();
 }
Beispiel #4
0
 protected MixpanelClientBase(string token, IMixpanelHttp http = null)
 {
     this.http  = http ?? new MixpanelHttp();
     this.token = token;
 }
Beispiel #5
0
 public MixpanelEngage(string token, IMixpanelHttp http = null) : base(token, http)
 {
 }
 protected MixpanelClientBase(string token, IMixpanelHttp http = null)
 {
     this.http = http ?? new MixpanelHttp();
     this.token = token;
 }
 public MixpanelEngage(string token, IMixpanelHttp http = null) : base(token, http)
 {
 }
Beispiel #8
0
 public WsMixpanelTracker(string token, IMixpanelHttp http = null, TrackerOptions options = null)
     : base(token, http, options)
 {
 }
Beispiel #9
0
 /// <summary>
 /// Creates a new Mixpanel Engage client for a given API token
 /// </summary>
 /// <param name="token">The API token for MixPanel</param>
 /// <param name="http">Optional: An implementation of IMixpanelHttp, <see cref="MixpanelHttp"/>
 /// Determines if class names and properties will be serialized to JSON literally.
 /// If false (the default) spaces will be inserted between camel-cased words for improved 
 /// readability on the reporting side.
 /// </param>
 /// <param name="options">Optional: Specific options for the API <see cref="EngageOptions"/></param>
 public MixpanelEngage(string token, IMixpanelHttp http = null, EngageOptions options = null)
   : base(token, http) {
   _options = options ?? new EngageOptions();
 }
Beispiel #10
0
 protected MixpanelClientBase(string token, IMixpanelHttp http = null)
 {
     this.http  = http ?? new MixpanelHttp();
     this.token = token;
     this.batch = new List <Dictionary <string, object> >();
 }