These are chat archives for shaarli/Shaarli

25th
Feb 2016
arnaudmm
@arnaudmm
Feb 25 2016 09:56
Hello! What is the best way to add a link programmatically? Is there an API? Or I have to first get form token with a first request then do a second request to post my link (with all the cookie correctly set)
kalvn
@kalvn
Feb 25 2016 17:22
I'm pretty sure there's no API. As far as I know, what Android and iOS apps do is what you just described: doing a first request to get the token and then doing a POST request with required parameters.
ArthurHoaro
@ArthurHoaro
Feb 25 2016 17:36
No, there is no API. That's something we might consider when Shaarli would be entirely refactored, which is a pretty far milestone. I'm not sure how mobile apps works, but yes, probably as @kalvn said ; or something similar.
Alexis J.
@alexisju
Feb 25 2016 17:57
Its only on my instance or Firefox Social Api is broken? I cannot add on my Firefox when i click on the button on Shaarli's Tools page.
ArthurHoaro
@ArthurHoaro
Feb 25 2016 17:59
No issue here.
It also works on your demo.
Nicolas Danelon
@nicolasdanelon
Feb 25 2016 18:09
not working here :|
ArthurHoaro
@ArthurHoaro
Feb 25 2016 18:18
Erf. Tried again in the demo on an up to date computer: not working with HTTP, works with HTTPS.
Nicolas Danelon
@nicolasdanelon
Feb 25 2016 18:22
I'm using let'sencrypt.. could it be ?
Alexis J.
@alexisju
Feb 25 2016 18:27
My SSL certificate is expired, so i add issue to use social app (unable to outpass ssl warning); i tryed to deleted the service on firefox and add it again without https. But i cant...
ArthurHoaro
@ArthurHoaro
Feb 25 2016 18:35
I'm also using Let's Encrypt and it's fine. Please open an issue.
Alexis J.
@alexisju
Feb 25 2016 18:38
ok