blawsybogsy

joined 4 years ago
[–] [email protected] 3 points 1 year ago (4 children)

i'm building a client, happy to help if i can, also to receive help! main issues i have had so far is how to actually use a number of the methods' parameters, like limit (whats the max value?), page (how does pagination actually work?), etc. so far i have been storing any useful info about the API (like the valid values for a given type) in my own lists then querying them in my code.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

max comments appears to be 50? "fetch" (search?) limit is 50.

[–] [email protected] 1 points 1 year ago

nvm i worked it out: resolveObject is the endpoint to chase in the docs.

[–] [email protected] 1 points 1 year ago

(my post has URLs autocorrected to URLS, strange)

[–] [email protected] 21 points 1 year ago (1 children)

ah, Lenny. I really love Lenny.

[–] [email protected] 0 points 1 year ago (1 children)

actually it would be very helpful to know the maximum value for any of the 'number' parameters in the API.

[–] [email protected] 1 points 1 year ago

made some progress. mainly spent time working on getting the sorting types and listing types going, so you can cycle between them on the go. v basic display of post details in byline, etc., but that can easily be spruced up by pulling code from mastodon.el. + markdown rendered posts/comments, uwu!

https://codeberg.org/martianh/lem. the readme has a rough todo list.

logging in and loading lem as package is still pretty rough, or kinda broken. but i'll get it sorted soon.

still gotta build a comments tree also, that's a biggie.

[–] [email protected] 0 points 1 year ago (3 children)

so "path" is a decimal separated list of comment ids? docs say nothing, but it looks like that.

[–] [email protected] 0 points 1 year ago (4 children)

thanks for the clear info. i think i'd missed the All type_. now off to find the path attribute.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

can you see comments that way? you just subscribe to communities i imagine?

[–] [email protected] 1 points 1 year ago

https://codeberg.org/martianh/lem has some basics, functions returning plain JSON. i didn't do any auth, but if its oauth and so similar to mastodon.el, we cd also just move its auth code into the fedi.el library. and fedi-http.el is already set up to handle auth tokens.

discovering lemmy's query parameters is quite a pain for me, as i don't know rust.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

thanks for the link. so https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs shows the paths and params, i tried them in a rest client and it's no too hard to follow.

the mastodon.el http layer isn't great, but it could be v quickly adapted for this case.

view more: ‹ prev next ›