Re: ftwca paste.debian.net
Hi,
*snip*
> Though currently the page layout is rather plain, and it seems that
> https://paste.debian.net/pastebin.css returns 404. Hopefully it is a
> simple fix.
Stupid me doing last minute changes without adding a test. Fixed.
>
> > API: The legacy XML-RPC API is retired and no longer available. Sorry for
> > breaking things (especially grml-paste), I wasn't aware someone is still using
> > it. Tools like pastebinit that use the form directly will continue to work
> >
>
> This however also breaks the little tool debpaste.el that I have been
> using, which also uses the XML-RPC API. Is there any alternative API
> planned? Or is there a tutorial on how to set up pastebinit for
> paste.d.n?
pastebinit should work out of the box:
# echo -e "test\ntest\ntest\ntest" | pastebinit
https://paste.debian.net/hidden/d40f2605
But you can also give https://paste.debian.net/swagger-ui a try.
curl -X POST https://paste.debian.net/api/v1/paste
-H "Content-Type: application/json"
-d '{"code": "Hello from curl\nLine 2\nLine 3"}'
If you are authenticated you can also manage tokens via: https://paste.debian.net/tokens
which give you the option to authenticate against the api, which removes most of the checks and limitations:
curl -X POST https://paste.debian.net/api/v1/paste
-H "Content-Type: application/json"
-H "X-Paste-Token: $TOKEN"
-d '{"code": "Hello with token", "poster": "my_script"}'
Thanks for the feedback.
Alex
Reply to: