services.MessagesInterface 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.Message;
import models.MessageHistory;
import models.Messages;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface MessagesInterface {
@GET("/messages")
Call getMessages(
@Query("cursor") String cursor,
@Query("event") String event,
@Query("list") String list,
@Query("messageId") String messageId,
@Query("notification") String notification,
@Query("recipient") String recipient,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@GET("/messages/{messageId}")
Call getMessage(
@Path("messageId") String messageId,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@GET("/messages/{messageId}/history")
Call getMessageHistory(
@Path("messageId") String messageId,
@Query("type") String type,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy