Class ProfilesClient


  • public class ProfilesClient
    extends java.lang.Object
    • Constructor Detail

      • ProfilesClient

        public ProfilesClient​(ClientOptions clientOptions)
    • Method Detail

      • get

        public ProfileGetResponse get​(java.lang.String userId)
        Returns the specified user profile.
      • create

        public MergeProfileResponse create​(java.lang.String userId,
                                           MergeProfileRequest request)
        Merge the supplied values with an existing profile or create a new profile if one doesn't already exist.
      • replace

        public ReplaceProfileResponse replace​(java.lang.String userId,
                                              ReplaceProfileRequest request)
        When using PUT, be sure to include all the key-value pairs required by the recipient's profile. Any key-value pairs that exist in the profile but fail to be included in the PUT request will be removed from the profile. Remember, a PUT update is a full replacement of the data. For partial updates, use the Patch request.
      • replace

        public ReplaceProfileResponse replace​(java.lang.String userId,
                                              ReplaceProfileRequest request,
                                              RequestOptions requestOptions)
        When using PUT, be sure to include all the key-value pairs required by the recipient's profile. Any key-value pairs that exist in the profile but fail to be included in the PUT request will be removed from the profile. Remember, a PUT update is a full replacement of the data. For partial updates, use the Patch request.
      • delete

        public void delete​(java.lang.String userId)
        Deletes the specified user profile.
      • delete

        public void delete​(java.lang.String userId,
                           RequestOptions requestOptions)
        Deletes the specified user profile.
      • getListSubscriptions

        public GetListSubscriptionsResponse getListSubscriptions​(java.lang.String userId)
        Returns the subscribed lists for a specified user.
      • deleteListSubscription

        public DeleteListSubscriptionResponse deleteListSubscription​(java.lang.String userId)
        Removes all list subscriptions for given user.