view the rest of the comments
Linux Troubleshooting and scripts
this is a community for sharing your scripts that help when working with Linux as well a general troubleshooting.
Rules
-
Absolutely NO NSFW posts. break this rule and you will be removed from this community. NO EXCEPTIONS!
-
Only post scripts that help yourself and others. All scripts will be tested on my machine personally, any malicious scripts will be removed immediately.
-
This community is for the benefit of other Linux users. no bigotry, hate, nudes, malicious scripts or politics allowed.
Feel free to ask any kind of support questions, as we grow more succinct answers will be available. Let's make this community grow.
We are important to one another, not only in the linux world but also in the fediverse as a whole. Feel free to reach out to me with questions or concerns, as we grow bigger I will look into adding mods. (This section will be updated as needed.)
Hi. I've found the best place to test the api is here
Example script for making a post
You'll need to get your instance's community.id for the community you want to post to. To use this community as an example, it would be:
(lemmy will probably sanitise the ampersand in that query, so you'll have to replace the HTML with a literal ampersand)
Awesome, thanks a bunch. I'm working through this now as I have minutes to spare, but the community id thing is returning "Query deserialize error: missing field
q
". I'm wondering if special characters and stuff are being parsed. I also replaced auth= in line 3 with jwt=, just FYI. Thanks, I'll keep plugging.Ooops. I tested it before I posted, and the reason it worked is because it turns out that authentication isn't needed for that query.
I've edited the comment now, and there only being one part means that there's no need for an ampersand, so there's no probs with special characters.
That got me there. I just made my first scripted post. I'll take it from here with queuing my content. Thanks again!