I’ve succeeded in getting a reply from the server. Any personal information is blanked out with XXXX.
The following response is received -
{
"username": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"email": "[email protected]",
"first_name": "XXX",
"last_name": "XXXXXX",
"address": "XXXXXXXXXXX\n, XXXXXXXXX, XX, au, XXXX",
"address_1": "XXXXXXXXXXX",
"address_2": null,
"city": "XXXXXXXXXXX",
"state": "XX",
"country": "au",
"postal_code": "XXXX",
"id": "XXXXXX",
"authentication_token": "XXXXXXXXXXXXXXXXXXXX",
"session_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"created_at": "2019-12-09T03:12:57.000Z",
"updated_at": "2019-12-09T03:12:57.000Z",
"time_zone": "Australia/XXXXXX",
"phone": "XXXXXXXXXX",
"opt_in_1": "1",
"opt_in_2": "0",
"role": "customer",
"cognitoPool": {
"appClientId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"poolId": "us-east-1_XXXXXXXXX",
"region": "us-east-1"
},
"credentials": {
"AccessKeyId": "XXXXXXXXXXXXXXXXXXXX",
"SecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"SessionToken": "XXXXXXXXXX.............XXXXXXXXXXXX",
"Expiration": "2020-04-26T05:24:59.000Z",
"IdentityId": "us-east-1:XXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"userPoolOAuth": {
"AccessToken": "XXXXXXXXX...............XXXXXXXXXXXX",
"ExpiresIn": 3600,
"TokenType": "Bearer",
"RefreshToken": "XXXXXXXXX..........XXXXXXXXXXXX",
"IdToken": "XXXXXXXXXXXXXX.........XXXXXXXXXXXXXXXX.."
}
}
The problem I’m having is the subsequent GET request for the pH, ORP, status etc.
What specifically from the response above are you using for
authorization:xxxxxx
and
mydevicecodexxxxx
???