diff options
Diffstat (limited to 'examples/example08_obtain_token.cpp')
-rw-r--r-- | examples/example08_obtain_token.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/example08_obtain_token.cpp b/examples/example08_obtain_token.cpp index 82ac39a..3f9cca0 100644 --- a/examples/example08_obtain_token.cpp +++ b/examples/example08_obtain_token.cpp @@ -57,7 +57,9 @@ int main(int argc, char *argv[]) // Create an “Application” (/api/v1/apps), // and get URI for the authorization code (/oauth/authorize). - auto answer{token.step_1("Testclient", "read:blocks read:mutes", + // NOTE: Mastodon only needs read:accounts for verify_credentials but + // Pleroma needs the full read scope. + auto answer{token.step_1("Testclient", "read write:favourites", "https://example.com/")}; if (!answer) { |