sub
Well-Known Member
So are you still getting real data? I can't think of what I might be doing wrong to get a bunch of Null. Wondered if that part of the API might have changed with the Release of app V2.0.You can see example real data in these docs:
https://rivian-api.kaedenb.org/app/charging/get-live-session-data/#getlivesessiondata
Here is what I am POSTing.
{
host: 'rivian.com',
port: '443',
path: '/api/gql/chrg/user/graphql',
method: 'POST',
headers: {
'User-Agent': 'RivianApp/1304 CFNetwork/1404.0.5 Darwin/22.3.0',
Accept: 'application/json',
'Content-Type': 'application/json',
'Apollographql-Client-Name': 'com.rivian.ios.consumer-apollo-ios',
'a-sess': <redacted>,
'csrf-token': <redacted>,
'u-sess': <redacted>
}
}
{"operationName":"getLiveSessionData","variables":{"vehicleID":<redacted>},"query":"query getLiveSessionData($vehicleId: ID) { getLiveSessionData(vehicleId: $vehicleId) { isRivianCharger isFreeSession vehicleChargerState { __typename value updatedAt } chargerId startTime timeElapsed timeRemaining { value updatedAt } kilometersChargedPerHour { value updatedAt } power { value updatedAt } rangeAddedThisSession { value updatedAt } totalChargedEnergy { value updatedAt } timeRemaining { value updatedAt } vehicleChargerState { value updatedAt } kilometersChargedPerHour { value updatedAt } currentPrice } }"}
The redacted tokens and vehicle ID works when I ask for info from /api/gql/gateway/graphql. But I can't get anything but null from /api/gql/chrg/user/graphql
Sponsored