-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how to generate a bearer token #62
Comments
This is huge - the ability to call the api right from the docs is great but there is no obvious docs for how to get the bearer token that enables this for much of the api. |
💯 agree with this issue 👍 What I discover from community examples (example) is that the api seems directly available from Out of error this not appears in the doc or else I completely miss that point (that is possible :p). Here is a simple example on how to call // service, loginOptions
const agent = new BskyAgent({service})
agent.login(loginOptions);
const response = await this.agent.api.app.bsky.actor.getPreferences();
console.log(`response`, JSON.stringify(response, null, 2)); It would be great to have at least a little trigger like this in http reference introduction (+ of course explain how to get bearer token from agent : seems to be |
Fixed link: https://docs.bsky.app/docs/api/at-protocol-xrpc-api
It's not clear how to use a generated bearer token directly from the reference docs. |
Explain how to generate a bearer token here: https://www.docs.bsky.app/docs/api/at-protocol-xrpc-api or update endpoints to publicly accessible ones that don't require bearer tokens
The text was updated successfully, but these errors were encountered: