services.PreferencesInterface 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.Preference;
import models.UpdateResponseBody;
import models.Preferences;
import retrofit2.Call;
import retrofit2.http.*;
public interface PreferencesInterface {
@GET("/preferences")
Call getPreferences(
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@GET("/preferences/{recipientId}")
Call getPreference(
@Path("recipientId") String recipientId,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
@PUT("/preferences/{recipientId}")
Call putPreference(
@Path("recipientId") String recipientId,
@Body Preference preference,
@Header("Authorization") String authorization,
@Header("User-Agent") String userAgent
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy