Post 9q2GuoCU5R9uoStXTk by lucy@netzsphaere.xyz
 (DIR) More posts by lucy@netzsphaere.xyz
 (DIR) Post #9q2FqLzwtr6GEVLLwO by lucy@netzsphaere.xyz
       2019-12-16T21:48:39.244820Z
       
       0 likes, 0 repeats
       
       @glitch are you there?
       
 (DIR) Post #9q2FuHxvpoT0suHBfk by glitch@netzsphaere.xyz
       2019-12-16T21:49:03.297316Z
       
       0 likes, 0 repeats
       
       @lucy yea
       
 (DIR) Post #9q2FvJHGRWMfF6o13I by lucy@netzsphaere.xyz
       2019-12-16T21:49:35.589159Z
       
       0 likes, 0 repeats
       
       @glitch you have some experience with the mastodon api, right?
       
 (DIR) Post #9q2Fw9NQjqC6pI5fsm by glitch@netzsphaere.xyz
       2019-12-16T21:49:44.021969Z
       
       0 likes, 0 repeats
       
       @lucy a bit
       
 (DIR) Post #9q2G1uAKCspnO1hkWG by lucy@netzsphaere.xyz
       2019-12-16T21:50:47.435669Z
       
       0 likes, 0 repeats
       
       @glitch is there something you need to do in order to connect to a pleroma instance? like the username on mastodon is the email adress by default, how is that in case of pleroma?
       
 (DIR) Post #9q2G6gXyGfcwb52oTI by lain@pleroma.soykaf.com
       2019-12-16T21:51:30.801341Z
       
       1 likes, 1 repeats
       
       @lucy @glitch the pleroma and mastodon api are the same, if something works on mastodon and not on pleroma, please report abug
       
 (DIR) Post #9q2GpeTQp4ZpCMMYT2 by glitch@netzsphaere.xyz
       2019-12-16T21:59:42.837649Z
       
       0 likes, 0 repeats
       
       @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
       
 (DIR) Post #9q2GuoCU5R9uoStXTk by lucy@netzsphaere.xyz
       2019-12-16T22:00:42.218648Z
       
       0 likes, 0 repeats
       
       @glitch I'm getting the token
       
 (DIR) Post #9q2H4NUkER7Esozzlo by lucy@netzsphaere.xyz
       2019-12-16T22:02:24.443356Z
       
       0 likes, 0 repeats
       
       @glitch what is the api base url?
       
 (DIR) Post #9q2H55VIbjhfNHb3k8 by glitch@netzsphaere.xyz
       2019-12-16T22:02:30.369910Z
       
       0 likes, 0 repeats
       
       @lucy oh well, I can remove that api request from my clients then  ╮(︶▽︶)╭
       
 (DIR) Post #9q2HNKSZjwXqyM1M1I by glitch@netzsphaere.xyz
       2019-12-16T22:05:51.317302Z
       
       0 likes, 0 repeats
       
       @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
       
 (DIR) Post #9q2Ichz2f5oCEB6W7E by lucy@netzsphaere.xyz
       2019-12-16T22:19:50.415476Z
       
       0 likes, 0 repeats
       
       @glitch I'm getting "can't be blank, can't be blank" what does this mean? (it's the value in response.json().error, I assume that's the api response?)
       
 (DIR) Post #9q2IfNpu1f8Gbu6Yuu by glitch@netzsphaere.xyz
       2019-12-16T22:20:20.704099Z
       
       0 likes, 0 repeats
       
       @lucy which endpoint did you try to use?
       
 (DIR) Post #9q2InBV3m82ofQ4kcq by glitch@netzsphaere.xyz
       2019-12-16T22:21:41.087070Z
       
       0 likes, 0 repeats
       
       @lucy yes, it should be the api response. otherwise js would probably have thrown an exception
       
 (DIR) Post #9q2Iog6TTgdZs6HviS by lucy@netzsphaere.xyz
       2019-12-16T22:21:57.814513Z
       
       0 likes, 0 repeats
       
       @glitch "/api/v1" and "/api/v2/search" doesn't work, only just the plain url (+https://)
       
 (DIR) Post #9q2J8fACgKoQkSYu2q by glitch@netzsphaere.xyz
       2019-12-16T22:25:37.696243Z
       
       0 likes, 0 repeats
       
       @lucy what exactly are you trying to do?
       
 (DIR) Post #9q2JBo89nc2bQa6WQa by lucy@netzsphaere.xyz
       2019-12-16T22:26:11.827683Z
       
       0 likes, 0 repeats
       
       @glitch I try to get client credentials. it worked once (but I couldn't login) now it doesn't
       
 (DIR) Post #9q2JJ3cqaUNVVmus6K by glitch@netzsphaere.xyz
       2019-12-16T22:27:27.559395Z
       
       0 likes, 0 repeats
       
       @lucy so you're trying to get the client ID and secret? (I'm sorry, it's late and my brain is mush)
       
 (DIR) Post #9q2JOFsaSIIMxqkzL6 by lucy@netzsphaere.xyz
       2019-12-16T22:28:25.846727Z
       
       0 likes, 0 repeats
       
       @glitch yes. actually lua-mastodon is supposed to do so, I'm just trying to find out if it's broken or if I'm too dumb to use it :smug10:
       
 (DIR) Post #9q2JhcbQCBB4wOxjpA by glitch@netzsphaere.xyz
       2019-12-16T22:31:53.815991Z
       
       0 likes, 0 repeats
       
       @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)
       
 (DIR) Post #9q2JxL5D6HjvEqOHTs by lucy@netzsphaere.xyz
       2019-12-16T22:34:45.304761Z
       
       0 likes, 0 repeats
       
       @glitch I'm reading the code of lua-mastodon right now, this is exactly what it is doing
       
 (DIR) Post #9q2KD5v3FN86qG9Smu by lucy@netzsphaere.xyz
       2019-12-16T22:37:36.574142Z
       
       0 likes, 0 repeats
       
       @glitch I'm getting the same response when I try another instance
       
 (DIR) Post #9q2KDfoZmvLCAbOnh2 by glitch@netzsphaere.xyz
       2019-12-16T22:37:44.434137Z
       
       0 likes, 0 repeats
       
       @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
       
 (DIR) Post #9q2KRkcihpZv8dZ9uq by lucy@netzsphaere.xyz
       2019-12-16T22:40:15.700230Z
       
       0 likes, 0 repeats
       
       @glitch also "can't be blank, can't be blank" doesn't tell me what's wrong
       
 (DIR) Post #9q2KXImt726uXmy8WW by lucy@netzsphaere.xyz
       2019-12-16T22:41:14.842829Z
       
       0 likes, 0 repeats
       
       @glitch @cesese maybe you could help? :blobcatpeek:
       
 (DIR) Post #9q2L82k9j7TNUzD7Wy by cesese@niu.moe
       2019-12-16T22:47:50Z
       
       0 likes, 0 repeats
       
       @lucy @glitch sorry I didn't try my app with pleroma but with mastodon, and since it worked I didn't read the code behind it
       
 (DIR) Post #9q2LfRrXM6vexbal3w by glitch@netzsphaere.xyz
       2019-12-16T22:53:57.262208Z
       
       0 likes, 0 repeats
       
       @lucy I just tried performing a manual request and got a response with the client ID and secretthe sent content:{  "client_name": "test",  "redirect_uris": "urn:ietf:wg:oauth:2.0:oob",  "scopes": "read write follow"}