Submitted by SnowCode in meta (edited )

I think this is completely insane and I am underestimating the task but I would like to make a Raddle client in Gemini O.O So is there some kind of API I could use for that?

Why am I being downvoted btw?

16

Comments

You must log in or register to comment.

emoticons wrote

yes but It's by default disabled.

but You can get comment and submission json

Example -- /f/meta/138346/-/comment/233139.json and /f/meta/138346.json

9

emoticons wrote

.env

# Enable the REST API living at /api. The API is marked experimental for the
# following reasons:
# - No rate limiting is in place
# - The API has no separate authentication mechanism, yet. It shares the cookies
# with the main web interface for now.
# - The `X-Experimental-API` header must be sent with every request to the API.
# - There may be security bugs in the API
# - The API may be doing weird stuff
# - The API may break or be removed in future versions.
ENABLE_EXPERIMENTAL_REST_API=0

CommentController

GET /api/comments
GET /api/comments/{id}
PUT /api/comments/{id}

ForumController

GET /api/forums/{id}
GET /api/forums/by_name/{name}
POST /api/forums
PUT /api/forums/{id}

SubmissionController

GET /api/submissions
GET /api/submissions/{id}
POST /api/submissions
PUT /api/submissions/{id}
DELETE /api/submisisons/{id}
GET /api/submissions/{id}/comments

UserController

GET /api/users/{id}
GET /api/users/self
GET /api/users/{id}/preferences
PUT /api/users/{id}/preferences
GET /api/users/{id}/submissions
GET /api/users/{id}/moderator_of

/u/SnowCode

6

SnowCode OP wrote (edited )

oh that's annoying. Is there any chance of this being enabled? Also how do I get the list of comments according to your first comment? I can only get the comment count.

4

subrosa wrote

Why am I being downvoted btw?

comradepikachu said hi

9

__0 wrote

I would love to be able to browse raddle on Gemini, I mean it's already such a lightweight website compared to so many that I use so idk, but I've been really enjoying how stripped down the Gemini protocol is, I haven't really seen much for sites that have secure posting on the though.

7

SnowCode OP wrote

Yes would be really cool, but I'm afraid I would have to do really weird stuff to be able to post using gemini. As there seem to be no API enabled here. I'll first try to make a mirror (posting won't be possible) then maybe trying to do shit with selenium (CPU usage go brrrr) to be able to post on the site.

2