Skip to content

Stuck with OAuth but getting somewhere #3

Open
@scripting

Description

@scripting

What I need is code that works that connects to an app as defined on the Mastodon server. I want to be able to post to the user's account.

I've already created an app on Scott's server. I have the following info:

{
"clientKey": "xxx",
"clientSecret": "xxx",
"myAccessToken": "xxx",
"urlMastodonServer": "http://social.scottfr.ee/",
"urlRedirect": "http://social.rss.land/callbackFromMastodon"
 }

I am using some of what I know from working with Twitter here, that once the user has authorized the app, the Mastodon server needs to know where to redirect to with the accessToken for the user.

I just don't know the names of the routines, and ideally I'd have a little example I could crib from.

But I've been wandering around for the last hour, so it's time to put it down for now.

If anyone here has any code I can use that would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions