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