The library uses a Authorization token.
This token is subject to expiration, it may not work indefinitely.
To get this token you need to:
- go to the HoneyGain dashboard
- open the dev tools by pressing
Ctrl + Shift + I
orF12
and go to theNetwork
tab - log into your account
- in any of the requests requests, go to the
Headers
tab, in theRequest Headers
part, look for theAuthorization
header. - copy the value of this header. It begins by
Bearer
. - example:
header:Authorization: Bearer eyJ0eXAi...xaL5x4
- write the Authorization token in the client.login function:
client.login("eyJ0eXAi...xaL5x4");
//you can include or not "Bearer "