Sink icon indicating copy to clipboard operation
Sink copied to clipboard

API

Open dcdebug opened this issue 1 year ago • 2 comments

not support the api ? example : a url request the api then return a shorturl .

dcdebug avatar Jun 09 '24 14:06 dcdebug

It's already supported, but not yet stable written, you can refer to this command line first

curl 'https://sink.cool/api/link/create' \
  -H 'authorization: Bearer SinkCool' \
  -H 'content-type: application/json' \
  --data-raw '{"url":"https://github.com/ccbikai/Sink/issues/14"}'

miantiao-me avatar Jun 10 '24 03:06 miantiao-me

@ccbikai Thank you, can you specify the slug in the json?

tomcollis avatar Jun 11 '24 14:06 tomcollis

https://chromewebstore.google.com/detail/short-url-extension-333/cpgihhghfphpbapipfllmlplmfokfhaj?authuser=1&hl=zh-TW

Thank you @ccbikai for providing the API example earlier 🙏
I’ve built a Chrome extension based on your API that helps users shorten URLs quickly.
It’s now available on the Chrome Web Store for others who might find it useful.
Really appreciate your contribution!

tbdavid2019 avatar Sep 10 '25 00:09 tbdavid2019