Skip to main content

MyData Service

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

Get and request for MyData

api.mydata_service.create()
mydata = api.mydata_service.get('exampleId')
print(mydata.data_entries[0].document)

# user's personal data is stored in:
mydata.data_entries[0].my_data_list[0].data

Output

Successfully requested MyData creation for the user exampleId

{'code': 'HSL-000',
'dataId': {'timestamp': 1554981416,
'machineIdentifier': 3699937,
'processIdentifier': 6893,
'counter': 580064,
'date': '2019-04-11T11:16:56.000+0000',
'timeSecond': 1554981416,
'time': 1554981416000},
'mimeType': 'application/json',
'account': 'exampleId',
'status': 'READY',
'updatedOn': '2019-04-11T11:16:56.749+0000'}

MyData Service Models

MyDataPackage

MyDataEntry

MyData