Class AsyncRawConsumerUsersClient
- java.lang.Object
-
- com.flagright.api.resources.consumerusers.AsyncRawConsumerUsersClient
-
public class AsyncRawConsumerUsersClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawConsumerUsersClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUsersCreateResponse>>create(ConsumerUsersCreateRequest request)POST Consumer Userjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUsersCreateResponse>>create(ConsumerUsersCreateRequest request, RequestOptions requestOptions)POST Consumer Userjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>>get(java.lang.String userId)GET Consumer Userjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>>get(java.lang.String userId, RequestOptions requestOptions)GET Consumer User
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawConsumerUsersClient
public AsyncRawConsumerUsersClient(ClientOptions clientOptions)
-
-
Method Detail
-
create
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<ConsumerUsersCreateResponse>> create(ConsumerUsersCreateRequest request)
POST Consumer User
/consumer/userendpoint 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 usercreatedTimestamp- 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/userendpoint 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 usercreatedTimestamp- 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/userendpoint 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 correspondinguserId
-
get
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<UserWithRulesResult>> get(java.lang.String userId, RequestOptions requestOptions)
GET Consumer User
/consumer/userendpoint 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 correspondinguserId
-
-