/
MyData Service (java)
NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
MyData Service (java)
Wrapper for '/user/{userID}/mydata' API for collecting user's personal data.
List of all options
Create request for the personal data
Get user's personal data
Initialize service
TrivoreID sdk = TrivoreID.mgmtApiClient();
MyDataServiceImpl myDataService = new MyDataServiceImpl(sdk.myDataService());
Get and request for MyData
// request for MyData creation
myDataService.request(userId);
// get my data and user info
MyDataPackage myData = myDataService.getAll(userId);
byte[] userInfo = myDataService.getUserInfo(userId);