services.EventsInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of courier-java Show documentation
Show all versions of courier-java Show documentation
Java SDK for communicating with the Courier REST API.
package services;
import models.Event;
import models.Events;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.PUT;
public interface EventsInterface {
@GET("/events")
Call getEvents(
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@GET("/events/{eventId}")
Call getEvent(
@Path("eventId") String eventId,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@PUT("/events/{eventId}")
Call putEvent(
@Path("eventId") String eventId,
@Body Event event,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy