Conversation
Notices
-
aroque (aroque)'s status on Wednesday, 24-Feb-2016 21:47:50 CET aroque How do I add an attachment via !gnusocial API? - Manuel Ortega likes this.
-
rugk -> ⚠️ Follow me at https://social.wiuwiu.de/@rugk (rugk)'s status on Wednesday, 24-Feb-2016 21:54:07 CET rugk -> ⚠️ Follow me at https://social.wiuwiu.de/@rugk @aroque /cc !gnusocial -
Chimo (chimo)'s status on Wednesday, 24-Feb-2016 21:58:24 CET Chimo @aroque I think via the "statusnet/media/upload" endpoint according to this: https://gnusocial.no/doc/twitterapi (bottom of page) -
Chimo (chimo)'s status on Wednesday, 24-Feb-2016 22:01:17 CET Chimo @aroque or if you want it part of a notice check "statuses/update" on that same page. Think you need to use a "media" parameter with that endpoint. -
aroque (aroque)'s status on Wednesday, 24-Feb-2016 22:10:52 CET aroque @chimo thanks. I'll see what I can do. -
aroque (aroque)'s status on Thursday, 25-Feb-2016 19:13:47 CET aroque Easier than I thought. This worked just fine:
$ curl -u user:password -F "status=Test post" -F "media=@<image_path>" <gslink>/index.php/api/statuses/update.xmlmcscx and Manuel Ortega like this.Manuel Ortega repeated this. -
Chimo (chimo)'s status on Thursday, 25-Feb-2016 19:15:01 CET Chimo @aroque Nice! Manuel Ortega likes this.