this post was submitted on 27 Jul 2023
10 points (91.7% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

Where can I get the auth key or is this just the password of the registered bot? Also what is honeypot good for?

top 5 comments
sorted by: hot top controversial new old
[–] RoundSparrow@lemmy.ml 4 points 2 years ago* (last edited 2 years ago) (2 children)

Since your screen shot seems to be API documentation, FYI: !lemmydev@lemm.ee community.

Where can I get the auth key or is this just the password

auth is listed in your screenshot, that's the login session JWT token. Use the login API call to get the token before you call CreatePost.

From what I understand, a key unique to bots is only in the proposal stage. Convention seems to be to create a regular end-user account through sign-up process and hit the checkmark on the profile that it is a bot. There may be instance-specific rules.

I have no idea what a honeypot on CreatePost does.

[–] PrivateNoob@sopuli.xyz 3 points 2 years ago

Ahh thank you for the help! Sorry for posting here, I just couldn't find a better community to ask about this.

[–] marsara9@lemmy.world 3 points 2 years ago (1 children)

FYI: https://en.m.wikipedia.org/wiki/Honeypot_(computing)

But there should also be a separate endpoint to get an auth token. (I don't remember it off the top of my head). Then your bot should store that somewhere and send it as the auth parameter in every request.

[–] RoundSparrow@lemmy.ml 2 points 2 years ago (1 children)

I know what a honeypot is ;) It exists outside computing, such as spy vs. spy.

What I have no idea of is what Lemmy does internally with a honeypot post it creates. Auto-report comments on them?

load more comments
view more: next ›