Skip to content

Get cookies for different device #1

@orausch

Description

@orausch

Is there a way to get the cookies for a different device ID? I'd like to query my kindle, not the cloud reader UI.

(Old message below)

Awesome project!

I got the basic setup working, and the first example (calling kindle.defaultBooks) seems to work.

However, the call to await book.details(); seems to fail; the response from https://read.amazon.com/service/mobile/reader/startReadin (books.js:58) is

{
  Message: 'The given request is not an ADP session request.  Ensure the proper device type configuration is set.'
}

Any clue about what might be up?

EDIT:
Ah I see, getting the token failed

requested https://read.amazon.com/service/web/register/getDeviceToken?serialNumber=xxx&deviceType=xxx : status 403
response body payload: {"Message":"Insufficient or invalid information to authenticate the session"}

Ah, I guess this is because I used the cookies for the cloud reader device, but plugged in the device id of a kindle. Using the cloud reader device ID works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions