services.SendInterface 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.SendEnhancedRequestBody;
import models.SendEnhancedResponseBody;
import models.SendListRequestBody;
import models.SendRequestBody;
import models.SendResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
public interface SendInterface {
@POST("/send")
Call send(
@Body SendRequestBody sendRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@POST("/send")
Call sendIdempotent(
@Body SendRequestBody sendRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent,
@Header("Idempotency-Key") String idempotencyKey
);
@POST("/send/list")
Call sendToList(
@Body SendListRequestBody sendListRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@POST("/send")
Call sendEnhanced(
@Body SendEnhancedRequestBody sendEnhancedRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@POST("/send")
Call sendEnhancedIdempotent(
@Body SendEnhancedRequestBody sendEnhancedRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent,
@Header("Idempotency-Key") String idempotencyKey
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy