this post was submitted on 14 Jun 2023
18 points (100.0% liked)
Programming
13361 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here's a kind of guess on how to create a post using python's requests library:
Does this look right? I understand that I'll have to authenticate to the server to do this, but I'm really not sure how to do that.
Very jank response because I’m on my phone!
Looks like you’ll need to POST the header Auth with the token you receive as a LoginResponse https://join-lemmy.org/api/interfaces/LoginResponse.html
(Brb for an edit)
Cool. Then my other answer is correct. I appreciate the help!