com.mparticle.client.EventsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-events-sdk Show documentation
Show all versions of server-events-sdk Show documentation
mParticle SDK for server-side Java environments
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
);
}