malijaffri
I got it working in shell as well:
#!/bin/bash
read -p "Username: " user
read -p "Password: " -s pass
read -p "TOTP: " totp
res=$(curl \
--request POST \
--url "https://feddit.ch/api/v3/user/login" \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"username_or_email":"'$user'","password":"'$pass'","totp_2fa_token":"'$totp'"}')
jwt=$(echo $res | sed -re 's/^.*"jwt":"([^"]*)".*$/\1/')
curl \
--request GET \
--url "https://feddit.ch/api/v3/user/export_settings" \
--header 'accept: application/json' \
--cookie "jwt=$jwt" \
-o "export.json"
I'd recommend echoing $res and $jwt before processing them further
Edit: if you don't have TOTP enabled, don't forget to remove it from the request
Docs: https://lemmy.readme.io/reference/post_user-login
Edit 2: added spacing
I used the LemmyHTTP Nodejs module to connect to the API, and after a few tries, got it working. I could post my code in an hour, if you want it.
edit: docs: https://join-lemmy.org/api/index.html
Yeah, same for me. Does anyone know a way to export the profile through an API? Because the API seems to be working, at least, as I can see these post and respond to them.
Or if there is some other way to access the site, that'd be helpful as well
I have never encountered any double boss before in all my years playing PD*! And that's actually saying something, because I play Shattered quite often. So, in my inexpert opinion, pretty darn small!
* limited to Vanilla, Shattered, and Experienced. Also bits of Yet Another, for a little while about a year ago.
Noted. If this is what people expect (and/or want) from Reuters, then it's none of my business how much they put in a single article. Have a nice day.
PARIS, Feb 26 (Reuters) - France's President Emmanuel Macron said on Monday there was no consensus on sending troops to Ukraine, but the subject could not be ruled out.
"There is no consensus at this stage... to send troops on the ground," Macron said after hosting some 20 countries allied to Ukraine.
"Nothing should be excluded. We will do everything that we must so that Russia does not win."
Saved you a click. ~~Yes, that's it. That's the entire "article". A total of 4 sentences. What exactly was the point of writing such a short article?~~
Edit: pulled my head out of my ass.
Huh. Imagine that. Being discovered, named, categorised as a planet, and uncategorised as a planet, all within less than a year of your own orbit.
Also Joplin! It's a cross-platform Markdown notes app with many syncing options (including local storage, Dropbox, Nextcloud, and others). I've been using it for 2 years now, after trying different apps to see what fits. I've been using local storage and Syncthing to keep my Android phone and Linux PC synced, and really like it. It even lets you use an external text editor to edit your notes!
Oh dang, this is the 4th floor? I didn't even see that previously!
In that case, I've encountered double caustic slimes quite often, and wouldn't really be surprised to encounter them at all.