Skip to content
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

Can't get it working. #163

Open
iota17 opened this issue Nov 29, 2022 · 3 comments
Open

Can't get it working. #163

iota17 opened this issue Nov 29, 2022 · 3 comments

Comments

@iota17
Copy link

iota17 commented Nov 29, 2022

I know I'm just an idiot, but I can't figure out how to get it working. Please, send instructions. I have been trying to get it to work for 1+ hrs. I use Win11, I have Go installed.

@till
Copy link
Contributor

till commented Dec 18, 2022

The readme contains examples how to use this code. :) They work. So in order to get help, it would be great if you shared what doesn't work.

@lmas
Copy link

lmas commented Mar 23, 2023

Follow this guide for example, for registering a new application on your account and get an Access Token to login with.

Then you just have to provide the token when setting up a new client:

c := mastodon.NewClient(&mastodon.Config{
    Server:      "http://localhost:8000", // or whatever server you're trying to connect to
    AccessToken: "longtokenhere",
})

Works flawlessly for me.

@ktpx
Copy link

ktpx commented Aug 27, 2023

Docs doesnt mention accesstoken.

This does not work either if you have 2FA enabled, btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants