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

create_status responds with unauthorized #100

Open
hhofner opened this issue May 2, 2023 · 0 comments
Open

create_status responds with unauthorized #100

hhofner opened this issue May 2, 2023 · 0 comments

Comments

@hhofner
Copy link

hhofner commented May 2, 2023

Apologies if this is expected but I've tried to post a status with create_status only to get the error

(Hunter.Error) "{\"error\":\"This action is outside the authorized scopes\"}"
    (hunter 0.5.1) lib/hunter/api/http_client.ex:348: Hunter.Api.HTTPClient.request!/5

but I created the app per the readme instructions, which includes all write access:

app = Hunter.create_app("hunter", "urn:ietf:wg:oauth:2.0:oob", ["read", "write", "follow"], nil, [save?: true, api_base_url: "https://example.com"])

conn = Hunter.log_in(app, "[email protected]", "your_password", "https://example.com")

and I was then able to read basic things like favorites. However when running Hunter.create_status(conn, "test"toot") I get the following error

(Hunter.Error) "{\"error\":\"This action is outside the authorized scopes\"}"
    (hunter 0.5.1) lib/hunter/api/http_client.ex:348: Hunter.Api.HTTPClient.request!/5
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

1 participant