All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mparticle.client.EventsApi Maven / Gradle / Ivy

There is a newer version: 2.5.4
Show newest version
package com.mparticle.client;

import retrofit2.Call;
import retrofit2.http.*;

import com.mparticle.model.Batch;

import java.util.List;

public interface EventsApi {
  /**
   * Send events to mParticle
   * 
   * @param batch  (optional)
   * @return Call<Void>
   */
  @Headers({
    "Content-Type:application/json"
  })
  @POST("bulkevents")
  Call bulkUploadEvents(
    @retrofit2.http.Body List batch
  );

  /**
   * Send events to mParticle
   * 
   * @param batch  (optional)
   * @return Call<Void>
   */
  @Headers({
    "Content-Type:application/json"
  })
  @POST("events")
  Call uploadEvents(
    @retrofit2.http.Body Batch batch
  );

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy