Humpheh / nest-observe

Unofficial API for observing Google Nest devices which works with Google authentication
MIT License
13 stars 1 forks source link

'x-goog-api-key' should be the public nest API key: 'x-goog-api-key': 'AIzaSyAdkSIMNc51XGNEAYWasX9UOWkS5P6sZE4', #1

Closed sychen52 closed 4 years ago

sychen52 commented 4 years ago

Otherwise, 'https://nestauthproxyservice-pa.googleapis.com/v1/issue_jwt' gives me a 400 response.

sychen52 commented 4 years ago

Here is the response I got from it: Response { size: 0, timeout: 40000,

body: Gunzip {
  _writeState: [Uint32Array],
  _readableState: [ReadableState],
  readable: true,
  _events: [Object: null prototype],
  _eventsCount: 6,
  _maxListeners: undefined,
  _writableState: [WritableState],
  writable: true,
  allowHalfOpen: true,
  _transformState: [Object],
  _hadError: false,
  bytesWritten: 0,
  _handle: [Zlib],
  _outBuffer: <Buffer 00 e4 81 05 ed 7f 00 00 00 e4 81 05 ed 7f 00 00 b0 54 e7 03 00 00 00 00 b0 54 e7 03 00 00 00 00 f0 4a e7 03 00 00 00 00 40 4b e7 03 00 00 00 00 db 71 ... 16334 more bytes>,
  _outOffset: 0,
  _chunkSize: 16384,
  _defaultFlushFlag: 2,
  _finishFlushFlag: 2,
  _defaultFullFlushFlag: 3,
  _info: undefined,
  _level: -1,
  _strategy: 0
},
disturbed: false,
error: null

},

url: 'https://nestauthproxyservice-pa.googleapis.com/v1/issue_jwt',
status: 400,
statusText: 'Bad Request',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0

} }