services.ProfilesInterface 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.PatchRequestBody;
import models.Profile;
import models.ProfileLists;
import models.UpdateResponseBody;
import retrofit2.Call;
import retrofit2.http.*;
public interface ProfilesInterface {
@GET("/profiles/{recipientId}")
Call getProfile(
@Path("recipientId") String recipientId,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@POST("/profiles/{recipientId}")
Call postProfile(
@Path("recipientId") String recipientId,
@Body Profile profile,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@PATCH("/profiles/{recipientId}")
Call patchProfile(
@Path("recipientId") String recipientId,
@Body PatchRequestBody patchRequestBody,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@PUT("/profiles/{recipientId}")
Call putProfile(
@Path("recipientId") String recipientId,
@Body Profile profile,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@GET("/profiles/{recipientId}/lists")
Call getProfileLists(
@Path("recipientId") String recipientId,
@Query("cursor") String cursor,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy