Posts
1035
Following
0
Followers
18
l33th4xx0r in training
plays games, I think
Mastodon API tech support

XMPP: glitch@trashserver.net

Other accounts:
@Glitch@kawen.space
@necromancer@niu.moe
@lucy telnet
0
0
0

Necromancer akkohi2 mylittlevoid

@absturztaube did you implement the XM player entirely from scratch or did you use a library?
0
0
2

Necromancer akkohi2 mylittlevoid

nini kirbsleep
1
0
0
@lucy I just tried performing a manual request and got a response with the client ID and secret

the sent content:
{
"client_name": "test",
"redirect_uris": "urn:ietf:wg:oauth:2.0:oob",
"scopes": "read write follow"
}
0
0
0
@lucy weird. it should work, the mastodon docs don't specify any other required parameters
https://docs.joinmastodon.org/api/rest/apps/#post-api-v1-apps
0
0
0
@lucy you can get the client credentials from /api/v1/apps when you give it the parameters "client_name", "redirect_uris" and "scopes". just use this for the redirect Uri field: "urn:ietf:wg:oauth:2.0:oob" and use the scopes: "read write follow" (if you need push notifications, just add "push" to the scopes)
0
0
0
@lucy so you're trying to get the client ID and secret? (I'm sorry, it's late and my brain is mush)
0
0
0
@lucy what exactly are you trying to do?
0
0
0
@lucy yes, it should be the api response. otherwise js would probably have thrown an exception
0
0
0
@lucy which endpoint did you try to use?
0
0
0
@lucy depends. most api routes are under /api/v1 except for the search api (which supports full text search). that api is located under /api/v2/search
0
0
0
@lucy oh well, I can remove that api request from my clients then ╮(︶▽︶)╭
0
0
0
@lucy pleroma definitely accepts the email address. otherwise it would probably break compatibility with some mastodon clients. I'm not sure if it accepts the username tho (it probably does since I always log in using my username)

also, I'm not sure if you need to register an app in order to be able to get a token via the password grant flow
0
0
0
@lucy a bit
0
0
0
@lucy thanks!
0
0
0
@NaiJi nah, not really. i'm just gonna try to sleep as much as i can blobcatpat
0
0
1
@NaiJi Thanks! akkoexcited
1
0
1

Necromancer akkohi2 mylittlevoid

Happy birthday to me, I guess blobcatpeek (technically it isn't today, it was yesterday, but who cares?)
1
0
2
Show older