Class AsyncRawConsumerUsersClient


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

      • AsyncRawConsumerUsersClient

        public AsyncRawConsumerUsersClient​(ClientOptions clientOptions)
    • Method Detail

      • create

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUsersCreateResponse>> create​(ConsumerUsersCreateRequest request)

        POST Consumer User

        /consumer/user endpoint allows you to operate on the Consumer user entity.

        In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.

        Payload

        Each consumer user needs two mandatory fields:

        • userId - Unique identifier for the user
        • createdTimestamp - UNIX timestamp in milliseconds for when the User is created in your system
      • create

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUsersCreateResponse>> create​(ConsumerUsersCreateRequest request,
                                                                                                                 RequestOptions requestOptions)

        POST Consumer User

        /consumer/user endpoint allows you to operate on the Consumer user entity.

        In order to pass the payload of a User to Flagright and verify the User, you will need to call this endpoint with the User payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.

        Payload

        Each consumer user needs two mandatory fields:

        • userId - Unique identifier for the user
        • createdTimestamp - UNIX timestamp in milliseconds for when the User is created in your system
      • get

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>> get​(java.lang.String userId)

        GET Consumer User

        /consumer/user endpoint allows you to operate on the Consumer User entity.

        Calling GET /consumer/user/{userId} will return the entire user payload and rule execution results for the user with the corresponding userId

      • get

        public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>> get​(java.lang.String userId,
                                                                                                      RequestOptions requestOptions)

        GET Consumer User

        /consumer/user endpoint allows you to operate on the Consumer User entity.

        Calling GET /consumer/user/{userId} will return the entire user payload and rule execution results for the user with the corresponding userId