Forked from StephenBlackWasAlreadyTaken/share_send_app_endpoints.md
Created
July 24, 2017 01:05
Revisions
-
StephenBlackWasAlreadyTaken revised this gist
Jul 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -354,7 +354,7 @@ __Body:__ ``` __Response:__ ```json [ { "ContactId":"FollowersContactId", -
StephenBlackWasAlreadyTaken revised this gist
Jul 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -398,7 +398,7 @@ __Body:__ __Response:__ ``` just a status, `200` ``` -
StephenBlackWasAlreadyTaken revised this gist
Jul 19, 2015 . 1 changed file with 64 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ # https://share1.dexcom.com/ * these are the calls used by the dexcom uploader app * these are in no particular order! * `User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0` @@ -342,6 +341,67 @@ __Response:__ ``` ### List all Followers __POST__ `/ShareWebServices/Services/Publisher/ListPublisherAccountSubscriptions?sessionId={YourSessionId}` __Body:__ ``` none ``` __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 followers ### Delete Follower __POST__ `/ShareWebServices/Services/Publisher/DeleteContact?sessionId={YourSessionId}&contactId={followersContactId}` __Body:__ ``` none ``` __Response:__ ``` a contact id (needed for the invite!), `123312-af1341123-coolid` ``` ## Still undocumented but logged if you need info on it (Not adding it all here out of lazziness) - getting the image - getting the subscription display name @@ -381,3 +441,4 @@ curl -v \ ``` -
StephenBlackWasAlreadyTaken revised this gist
Jul 17, 2015 . 1 changed file with 153 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ ### https://share1.dexcom.com/ # List of Endpoints, payloads and responses used to communicate with Dexcoms Servers! * these are the calls used by the dexcom uploader app and some by the follower app * these are in no particular order! * `User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0` @@ -68,6 +69,43 @@ __Response:__ ### Check if the Reciever is assigned to your account __POST__ `/ShareWebServices/Services/Publisher/CheckMonitoredReceiverAssignmentStatus?sessionId={YourSessionId}&serialNumber={YourSerialNumber}/` __Body:__ ``` none ``` __Response:__ ``` `AssignedToYou` or `NotAssigned` (plaintext) ``` ### Assign the reciever to you (If you got NotAssigned or something else) __POST__ `/ShareWebServices/Services/Publisher/ReplacePublisherAccountMonitoredReceiver?sessionId={YourSessionId}&serialNumber={YourSerialNumber}` __Body:__ ``` none ``` __Response:__ ``` No Idea, Someone please tell me, if you assign one to yourself that was already yours you get a 500 error ``` ### Check remote monitoring session is valid __POST__ @@ -206,6 +244,118 @@ __Response:__ ] ``` ## Invite Follower Related ### Check if someone is already a contact of yours __POST__ `/ShareWebServices/Services/Publisher/DoesContactExistByName?sessionId={YourSessionId}&contactName={NameOfNewFollower}` __Body:__ ``` none ``` __Response:__ ``` `true` or `false` (plaintext) ``` ### Create a contact if they dont already exist __POST__ `/ShareWebServices/Services/Publisher/CreateContact?sessionId={YourSessionId}&contactName={FollowerName}&emailAddress={FollowerEmail}` __Body:__ ``` none ``` __Response:__ ``` a contact id (needed for the invite!), `123312-af1341123-coolid` ``` ### Send the invite!! __POST__ `/ShareWebServices/Services/Publisher/CreateSubscriptionInvitation?sessionId={YourSessionId}&contactId={ContactId}` __Body:__ ```json { "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:__ ``` a subscriber id for the person you invited! (Usefull for updating their subscription permissions and such) `793312-af1341123-coolid` ``` ## Still undocumented but logged if you need info on it (Not adding it all here out of lazziness) - getting the image - getting the subscription display name - getting the subscription email address - reading the contact list - sending changes to the contacts Permissions - removing a contact - follower aknowledging alarms - follower reading invitation info - follower accepting invitation - follower updating runtimeInfo - folower listing all their subscriptions - read subscription alerts ## CURL examples for getting values from Dexcom @@ -230,3 +380,4 @@ curl -v \ -X POST "https://share1.dexcom.com/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId=8c1234deb-323c-4e9d-8362-39cfa23499ed&minutes=1440&maxCount=1" ``` -
StephenBlackWasAlreadyTaken revised this gist
Apr 8, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -226,7 +226,7 @@ which you use to get values like ``` curl -v \ -H "Content-Length: 0" -H "Accept: application/json" \ -H "User-Agent: Dexcom Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0" \ -X POST "https://share1.dexcom.com/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId=8c1234deb-323c-4e9d-8362-39cfa23499ed&minutes=1440&maxCount=1" ``` -
StephenBlackWasAlreadyTaken revised this gist
Apr 8, 2015 . 1 changed file with 45 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,6 +27,25 @@ __Response:__ ## Session Related ### Login to a Publisher Account (Get a Session ID): __POST__ `/ShareWebServices/Services/General/LoginPublisherAccountByName` __Body:__ ```JSON { "accountName":"yourlogin", "applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13", "password":"yourpassword" } ``` __Response:__ ``` "e3e3e6a5-coolsessionid-bro” ``` ### Authenticate Publisher Account (Get a Session ID): __POST__ @@ -185,4 +204,29 @@ __Response:__ "WT":"\/Date(1426769941000)\/" } ] ``` ## CURL examples for getting values from Dexcom ``` curl -v \ -H "Accept: application/json" -H "Content-Type: application/json" \ -H "User-Agent: Dexcom Share/3.0.2.11 CFNetwork/711.2.23 Darwin/14.0.0" \ -X POST https://share1.dexcom.com/ShareWebServices/Services/General/LoginPublisherAccountByName \ -d '{"accountName":"YOURLOGIN","applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13","password":"YOURPASSWORD"}' ``` which should recieve a response like ``` "8c1234deb-323c-4e9d-8362-39cfa23499ed" ``` which you use to get values like ``` curl -v \ -H "Content-Length: 0" -H "Accept: application/json" \ -H "User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0" \ -X POST "https://share1.dexcom.com/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId=8c1234deb-323c-4e9d-8362-39cfa23499ed&minutes=1440&maxCount=1" ``` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -160,7 +160,7 @@ __Response:__ just a status, `200` ``` `ST` system time, `DT` display time, `TA` is a time offset, multiply by 1000 and subtract it from the time (so subtracting a negative in this example, which is really adding) ### Read BG Data -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,9 +36,9 @@ __POST__ __Body:__ ```JSON { "accountName":"yourlogin", "applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13", "password":"yourpassword" } ``` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . No changes.There are no files selected for viewing
-
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 81 additions and 69 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,78 +3,53 @@ * these are in no particular order! * `User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0` ## General ### Read Dexcoms System time clock __GET__ `/ShareWebServices/Services/General/SystemUtcTime` __Body:__ ``` none ``` __Response:__ ```JSON { "DateTime":"\/Date(1426767421178)\/", "OffsetMinutes":0 } ``` ## Session Related ### Authenticate Publisher Account (Get a Session ID): __POST__ `/ShareWebServices/Services/General/AuthenticatePublisherAccount` __Body:__ ```JSON { "accountName”:”yourlogin”, ”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13", "password”:”yourpassword” } ``` __Response:__ ``` "e3e3e6a5-coolsessionid-bro” ``` ### Check remote monitoring session is valid __POST__ @@ -90,43 +65,45 @@ __Response:__ `true` or `false` (plaintext) ``` ### Start remote monitoring session __POST__ `/ShareWebServices/Services/Publisher/StartRemoteMonitoringSession?sessionId={yoursessionid}&serialNumber={YourdexcomSerialNumber}` __Body:__ ``` none ``` __Response:__ ``` just a status, `200` ``` ## Stop a remote monitoring session __POST__ `/ShareWebServices/Services/Publisher/StopRemoteMonitoringSession?sessionId={YourSessionId}` __Body:__ ``` none ``` __Response:__ ``` just a status, `200` ``` ### Update Publisher information (might be fun for sending them cute messages?) __POST__ @@ -154,23 +131,58 @@ __Response:__ just a status, `200` ``` ## Data! ### Post BG Data __POST__ `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__ ```JSON { "SN":"YourSerialNumber", "Egvs":[ { "Trend":4, "ST":"\/Date(1426783106000)\/", "DT":"\/Date(1426754317000)\/", "Value":97 } ], "TA":-14365 } ``` __Response:__ ``` just a status, `200` ``` _Not sure what ta is..._ ### Read BG Data __POST__ `/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId={YourSessionId}&minutes=1440&maxCount=1` __Body:__ ``` none ``` __Response:__ ```JSON [ { "DT":"\/Date(1426780716000-0700)\/", "ST":"\/Date(1426784306000)\/", "Trend":4, "Value":99, "WT":"\/Date(1426769941000)\/" } ] ``` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -161,9 +161,16 @@ __POST__ `/ShareWebServices/Services/General/AuthenticatePublisherAccount` __Body:__ ```JSON { "accountName”:”yourlogin”, ”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13", "password”:”yourpassword” } ``` __Response:__ in plaintext ``` "e3e3e6a5-coolsessionid-bro” ``` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 49 additions and 73 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ## Post session Data __POST__ `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` @@ -35,7 +35,7 @@ _Not sure what ta is..._ ## Read Data __POST__ `/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId={YourSessionId}&minutes=1440&maxCount=1` @@ -60,128 +60,104 @@ __Body:__ ## Start remote monitoring session __POST__ `/ShareWebServices/Services/Publisher/StartRemoteMonitoringSession?sessionId={yoursessionid}&serialNumber={YourdexcomSerialNumber}` __Body:__ ``` none ``` __Response:__ ``` just a status, `200` ``` ## check if session status __POST__ `/ShareWebServices/Services/Publisher/IsRemoteMonitoringSessionActive?sessionId={YourSessionId}` __Body:__ ``` none ``` __Response:__ ``` `true` or `false` (plaintext) ``` ## Stop a session __POST__ `/ShareWebServices/Services/Publisher/StopRemoteMonitoringSession?sessionId={YourSessionId}` __Body:__ ``` none ``` __Response:__ ``` just a status, `200` ``` ## Read Dexcoms System time clock __GET__ `/ShareWebServices/Services/General/SystemUtcTime` __Body:__ ``` none ``` __Response:__ ```JSON { "DateTime":"\/Date(1426767421178)\/", "OffsetMinutes":0 } ``` ## Update Publisher information (might be fun for sending them cute messages?) __POST__ `/ShareWebServices/Services/Publisher/UpdatePublisherAccountRuntimeInfo` __Body:__ ```JSON { "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:__ ``` just a status, `200` ``` ## Authenticate Publisher Account: __POST__ `/ShareWebServices/Services/General/AuthenticatePublisherAccount` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 3 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,16 +35,9 @@ _Not sure what ta is..._ ## Read Data POST `/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId={YourSessionId}&minutes=1440&maxCount=1` __Body:__ ``` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . No changes.There are no files selected for viewing
-
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 16 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,9 +26,9 @@ __Body:__ ``` __Response:__ ``` just a status, `200` ``` _Not sure what ta is..._ @@ -47,11 +47,23 @@ Accept-Language: en-us User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ ``` none ``` __Response:__ __Body:__ ```JSON [ { "DT":"\/Date(1426780716000-0700)\/", "ST":"\/Date(1426784306000)\/", "Trend":4, "Value":99, "WT":"\/Date(1426769941000)\/" } ] ``` ## Start remote monitoring session -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,18 @@ POST __Body:__ ```JSON { "SN":"YourSerialNumber", "Egvs":[ { "Trend":4, "ST":"\/Date(1426783106000)\/", "DT":"\/Date(1426754317000)\/", "Value":97 } ], "TA":-14365 } ``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,9 @@ POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__ ```JSON {"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365} ``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ POST __Body:__ ```{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__ ```{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,8 @@ POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__ ```{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,9 +9,7 @@ POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__```{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}``` __Response:__ -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 3 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,27 +1,20 @@ # https://share1.dexcom.com/ * these are the calls used by the dexcom uploader app * these are in no particular order! * `User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0` ## Post session Data POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` __Body:__ `{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}` __Response:__ just a status, `200` @@ -175,15 +168,6 @@ POST `/ShareWebServices/Services/General/AuthenticatePublisherAccount` __Body:__ `{"accountName”:”yourlogin”,”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13","password”:”yourpassword”}` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 9 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,16 +8,15 @@ POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` * Host share1.dexcom.com * Proxy-Connection keep-alive * Accept-Encoding gzip, deflate * Content-Type application/json * Content-Length 125 * Accept-Language en-us * Accept application/json * Connection keep-alive * User-Agent Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0\ __Body:__ `{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 72 additions and 23 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,11 @@ ## Post session Data POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` HTTP/1.1 Host share1.dexcom.com Proxy-Connection keep-alive Accept-Encoding gzip, deflate @@ -15,8 +19,13 @@ Accept application/json Connection keep-alive User-Agent Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0\ __Body:__ `{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}` __Response:__ just a status, `200` _Not sure what ta is..._ @@ -33,13 +42,20 @@ Connection: keep-alive Accept-Language: en-us User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ none __Response:__ `[{"DT":"\/Date(1426780716000-0700)\/","ST":"\/Date(1426784306000)\/","Trend":4,"Value":99,"WT":"\/Date(1426769941000)\/"}]` ## Start remote monitoring session POST `/ShareWebServices/Services/Publisher/StartRemoteMonitoringSession?sessionId={yoursessionid}&serialNumber={YourdexcomSerialNumber}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -50,14 +66,20 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __body:__ none __response:__ just a status, `200` ## check if session status POST `/ShareWebServices/Services/Publisher/IsRemoteMonitoringSessionActive?sessionId={YourSessionId}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -68,14 +90,20 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __body:__ none __response:__ `true` or `false` (plaintext) ## Stop a session POST `/ShareWebServices/Services/Publisher/StopRemoteMonitoringSession?sessionId={YourSessionId}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -86,13 +114,20 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ none __Response:__ just a status, `200` ## Read Dexcoms System time clock GET `/ShareWebServices/Services/General/SystemUtcTime` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -103,15 +138,21 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ none __Response:__ `{"DateTime":"\/Date(1426767421178)\/","OffsetMinutes":0}` ## Update Publisher information (might be fun for sending them cute messages?) POST `/ShareWebServices/Services/Publisher/UpdatePublisherAccountRuntimeInfo` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -122,14 +163,19 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ `{"sessionId":"fe9e49df-7064-4e13-a348-39cf44439e57","runtimeInfo":{"DeviceManufacturer":"Apple","DeviceModel":"iPhone5,2","DeviceOsVersion":"7.0.2","AppVersion":"3.0.2.11","AppName":"DexcomShare","AppNumber":"SW10569","DeviceOsName":"iPhone OS"}}` __Response:__ just a status, `200` ## Authenticate Publisher Account: POST `/ShareWebServices/Services/General/AuthenticatePublisherAccount` Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate @@ -140,5 +186,8 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ `{"accountName”:”yourlogin”,”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13","password”:”yourpassword”}` __Response:__ in plaintext `"e3e3e6a5-coolsessionid-bro”` -
StephenBlackWasAlreadyTaken revised this gist
Mar 19, 2015 . 1 changed file with 14 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,8 +50,9 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __body:__ none __response:__ just a status, `200` ## check if session status @@ -67,8 +68,9 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __body:__ none __response:__ `true` or `false` (plaintext) ## Stop a session @@ -101,8 +103,9 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ none __Response:__ `{"DateTime":"\/Date(1426767421178)\/","OffsetMinutes":0}` @@ -119,8 +122,9 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ `{"sessionId":"fe9e49df-7064-4e13-a348-39cf44439e57","runtimeInfo":{"DeviceManufacturer":"Apple","DeviceModel":"iPhone5,2","DeviceOsVersion":"7.0.2","AppVersion":"3.0.2.11","AppName":"DexcomShare","AppNumber":"SW10569","DeviceOsName":"iPhone OS"}}` __Response:__ just a status, `200` ## Authenticate Publisher Account: @@ -136,5 +140,5 @@ Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 __Body:__ `{"accountName”:”yourlogin”,”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13","password”:”yourpassword”}` __Response:__ in plaintext `"e3e3e6a5-coolsessionid-bro”` -
StephenBlackWasAlreadyTaken renamed this gist
Mar 19, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ # https://share1.dexcom.com/ * these are the calls used by the dexcom uploader app * these are in no particular order! -
StephenBlackWasAlreadyTaken created this gist
Mar 19, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,141 @@ # https://share1.dexcom.com/ * these are the calls used by the dexcom uploader app * these are in no particular order! ## Post session Data POST `/ShareWebServices/Services/Publisher/PostReceiverEgvRecords?sessionId={yourSessionId}` HTTP/1.1 Host share1.dexcom.com Proxy-Connection keep-alive Accept-Encoding gzip, deflate Content-Type application/json Content-Length 125 Accept-Language en-us Accept application/json Connection keep-alive User-Agent Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0\ Body:`{"SN":"YourSerialNumber","Egvs":[{"Trend":4,"ST":"\/Date(1426783106000)\/","DT":"\/Date(1426754317000)\/","Value":97}],"TA":-14365}` Response: just a status, `200` _Not sure what ta is..._ ## Read Data POST `/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionId={YourSessionId}&minutes=1440&maxCount=1` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Accept: application/json Content-Length: 0 Connection: keep-alive Accept-Language: en-us User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 Body: none Response: `[{"DT":"\/Date(1426780716000-0700)\/","ST":"\/Date(1426784306000)\/","Trend":4,"Value":99,"WT":"\/Date(1426769941000)\/"}]` ## Start remote monitoring session POST `/ShareWebServices/Services/Publisher/StartRemoteMonitoringSession?sessionId={yoursessionid}&serialNumber={YourdexcomSerialNumber}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 _body:_ none _response:_ just a status, `200` ## check if session status POST `/ShareWebServices/Services/Publisher/IsRemoteMonitoringSessionActive?sessionId={YourSessionId}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 _body:_ none _response:_ `true` or `false` (plaintext) ## Stop a session POST `/ShareWebServices/Services/Publisher/StopRemoteMonitoringSession?sessionId={YourSessionId}` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 Body: none Response: just a status, `200` ## Read Dexcoms System time clock GET `/ShareWebServices/Services/General/SystemUtcTime` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 _Body:_ none _Response:_ `{"DateTime":"\/Date(1426767421178)\/","OffsetMinutes":0}` ## Update Publisher information (might be fun for sending them cute messages?) POST `/ShareWebServices/Services/Publisher/UpdatePublisherAccountRuntimeInfo` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 _Body:_ `{"sessionId":"fe9e49df-7064-4e13-a348-39cf44439e57","runtimeInfo":{"DeviceManufacturer":"Apple","DeviceModel":"iPhone5,2","DeviceOsVersion":"7.0.2","AppVersion":"3.0.2.11","AppName":"DexcomShare","AppNumber":"SW10569","DeviceOsName":"iPhone OS"}}` _Response:_ just a status, `200` ## Authenticate Publisher Account: POST `/ShareWebServices/Services/General/AuthenticatePublisherAccount` HTTP/1.1 Host: share1.dexcom.com Proxy-Connection: keep-alive Accept-Encoding: gzip, deflate Content-Type: application/json Content-Length: 107 Accept-Language: en-us Accept: application/json Connection: keep-alive User-Agent: Dexcom%20Share/3.0.2.11 CFNetwork/672.0.2 Darwin/14.0.0 _Body:_ `{"accountName”:”yourlogin”,”applicationId":"d8665ade-9673-4e27-9ff6-92db4ce13d13","password”:”yourpassword”}` _Response:_ in plaintext `"e3e3e6a5-coolsessionid-bro”`