Returns a sources array
GET https://api.humanapi.co/v1/human/sources
# Returns a json object of sources:
// example
[
{
"id": "551ac6ef15eab1445e527c64",
"source": "55a83bdc8d1eb1420aa1a71b",
"sourceName": "Starfleet Medical",
"supportedDataTypes": [
], // deprecated supportedDataTypes property
"devices": [
"55a83bdc8d1eb1420aa1a71b"
], // deprecated devices property
"connectedSince": "2018-07-20T21:07:13.136Z",
"historySync": {
"status": "completed",
"oldestDate": "2015-03-21T00:00:00.000Z"
},
"organization": {
"href": "/medical/organizations/55a83bdc8d1eb1420aa1a71b",
"id": "55a83bdc8d1eb1420aa1a71b",
"name": "Starfleet Medical"
},
"resync" : {
"active" : true
},
"syncStatus": {
"status": "ok",
"details" : "ok",
"synchedAt": "2018-07-20T21:07:13.136Z",
"newestDate": "2018-04-20T19:06:11.151Z"
}
}
]
# Get sources measurement associated with the user
curl -H "Authorization: Bearer demo" "https://api.humanapi.co/v1/human/sources"
Property | Type | Description |
---|
source | String | Name or id of the connected source (all lowercase, no spaces) |
supportedDataTypes | Array[String] | (Deprecated) List of data types supported by the source |
devices | Array[String] | (Deprecated) List of devices or medical source id (when available) |
id | String | Non-unique id for an external data account |
connectedSince | Date | Date that the source was connected to Human API |
sourceName | String | Name of source |
historySync | Object | See historySync object |
syncStatus | Object | See syncStatus object |
resync | Object | (optional) See resync object |
organization | Object | See organization object |
Property | Type | Description |
---|
status | String | Status of the historical sync |
oldestDate | Date | Oldest date of the data retrieved from the service |
📘
For some services, oldestDate
is just an indication of how far back the synchronization tasks attempted to retrieve data.
Property | Type | Description |
---|
status | String | Status of the most recent sync |
synchedAt | Date | The last time the synchronization task ran for this user |
newestDate | Date | (Deprecated) The timestamp of the most recently retrieved data |
details | String | (optional) Identifies details about the status property when appropriate |
Property | Type | Description |
---|
active | Boolean | Identifies if the medical provider source in general has continuous capability (note: does not identify if this connected account will re-sync) |