-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the Share API #15
Comments
https://share1.dexcom.com/
GeneralRead Dexcoms System time clockGET
Body:
Response: {
"DateTime":"\/Date(1426767421178)\/",
"OffsetMinutes":0
} Session RelatedLogin to a Publisher Account (Get a Session ID):POST
Body: {
"accountName":"yourlogin",
"applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13",
"password":"yourpassword"
} Response:
Authenticate Publisher Account (Get a Session ID):POST
Body: {
"accountName":"yourlogin",
"applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13",
"password":"yourpassword"
} Response:
Check if the Reciever is assigned to your accountPOST
Body:
Response:
Assign the reciever to you (If you got NotAssigned or something else)POST
Body:
Response:
Check remote monitoring session is validPOST
Body:
Response:
Start remote monitoring sessionPOST
Body:
Response:
Stop a remote monitoring sessionPOST
Body:
Response:
Update Publisher information (might be fun for sending them cute messages?)POST
Body: {
"sessionId":"YourSessionId",
"runtimeInfo":
{
"DeviceManufacturer":"Apple",
"DeviceModel":"iPhone5,2",
"DeviceOsVersion":"7.0.2",
"AppVersion":"3.0.2.11",
"AppName":"DexcomShare",
"AppNumber":"SW10569",
"DeviceOsName":"iPhone OS"
}
} Response:
Data!Post BG DataPOST
Body: {
"SN":"YourSerialNumber",
"Egvs":[
{
"Trend":4,
"ST":"\/Date(1426783106000)\/",
"DT":"\/Date(1426754317000)\/",
"Value":97
}
],
"TA":-14365
} Response:
Read BG DataPOST
Body:
Response: [
{
"DT":"\/Date(1426780716000-0700)\/",
"ST":"\/Date(1426784306000)\/",
"Trend":4,
"Value":99,
"WT":"\/Date(1426769941000)\/"
}
] Invite Follower RelatedCheck if someone is already a contact of yoursPOST
Body:
Response:
Create a contact if they dont already existPOST
Body:
Response:
Send the invite!!POST
Body: {
"AlertSettings":{
"HighAlert":{
"MinValue":200,
"AlarmDelay":"PT1H",
"AlertType":1,
"IsEnabled":false,
"RealarmDelay":"PT2H",
"Sound":"High.wav",
"MaxValue":401
},
"LowAlert":{
"MinValue":39,
"AlarmDelay":"PT30M",
"AlertType":2,
"IsEnabled":false,
"RealarmDelay":"PT2H",
"Sound":"Low.wav",
"MaxValue":70
},
"FixedLowAlert":{
"MinValue":39,
"AlarmDelay":"PT0M",
"AlertType":3,
"IsEnabled":true,
"RealarmDelay":"PT30M",
"Sound":"UrgentLow.wav",
"MaxValue":55
},
"NoDataAlert":{
"MinValue":39,
"AlarmDelay":"PT1H",
"AlertType":4,
"IsEnabled":false,
"RealarmDelay":"PT0M",
"Sound":"NoData.wav",
"MaxValue":401
}
},
"Permissions":1,
"DisplayName":"{YourAccountDisplayName}"
} Note that permissions 1 means they can view your graph data Response:
List all FollowersPOST
Body:
Response: [
{
"ContactId":"FollowersContactId",
"ContactName":"FollowersName",
"DateTimeCreated":{
"DateTime":"\/Date(1437101121008)\/",
"OffsetMinutes":0
},
"DateTimeModified":{
"DateTime":"\/Date(1437101121008)\/",
"OffsetMinutes":0
},
"DisplayName":"YourDisplayName",
"InviteExpires":{
"DateTime":"\/Date(1437705921008)\/",
"OffsetMinutes":0
},
"IsEnabled":false,
"IsMonitoringSessionActive":true,
"Permissions":1,
"State":2,
"SubscriberId":"00000000-0000-0000-0000-000000000000",
"SubscriptionId":"theirSubscriptionIdIsuppose?"
}
] note: maybe we can use this subscription id to send our own custom invites to Delete FollowerPOST
Body:
Response:
Still undocumented but logged if you need info on it (Not adding it all here out of lazziness)
CURL examples for getting values from Dexcom
which should recieve a response like
which you use to get values like
|
(for archival purposes) |
Thanks, Ben, What is the status of Open APS? -Matt
|
Please note. https://shareous1.dexcom.comAnd I would like to send a very big thanks for this documentation! |
Thank you, soo very much for documenting this! This is very helpful for some automated blood sugar to Datadog work I was working on. I now am grabbing blood sugar data from Dexcom, then posting into Datadog so I have 15 months of data stored, and nicer UI for visualization! |
@bewest or @timberFrame, do you all know what the |
Disregard the above post, posting my findings below for anyone else wondering about the if trend == 0: |
@bewest Thanks for the documentation! Is there a way to get all BG data from within two points in time? |
@ejj28 you can do that with the official Dexcom API. |
@MrJarnould Yeah, I switched over to that when it came out. |
Hi, this is perhaps more a question to Dexcom developers but I try here to see if anyone has had a similar issue. I am trying to build a client to connect to the dexcom server and having problems with the response from the LoginPublisherAccountByName call. The content-type in the response header states application/JSON but the response (session ID) does not really look like a valid JSON (more like a string), consequently my client refuses to accept the response and abort with INVALID_HTTP_BODY_IN_NETWORK_RESPONSE (-400). I have tried to play around with different response content-types but with no luck. I just wanted to check if someone have had this issue and managed to work around it somhow. Thanks! |
I'd like to access the data in other places, such as a Query Table in Microsoft Excel. Could you add a file that documents the Share API?
The text was updated successfully, but these errors were encountered: