fwenzel / copy-shorturl

A Firefox extension to quickly create a short URL for the current page and copy it to the clipboard.
https://addons.mozilla.org/addon/copy-shorturl
Apache License 2.0
35 stars 15 forks source link

kutt.it support #128

Closed waclaw66 closed 2 years ago

waclaw66 commented 2 years ago

Please add support for custom kutt.it service. It uses POST requests. https://docs.kutt.it/#tag/links/paths/~1links/post

fwenzel commented 2 years ago

Sounds good, I can do that.

Note that kutt.it requires an API key. I have that ability for bitly right now but have to make it a little more generic.

You'll then have to make an account with kuttit and copy and paste the API key into the copy shorturl settings.

fwenzel commented 2 years ago

I added this and will upload version 5.4.0 to Mozilla now!

waclaw66 commented 2 years ago

Thanks, actually I'm running it on own server and domain, could you please add this option as well? Thanks.

fwenzel commented 2 years ago

Oh interesting. Yeah sure

fwenzel commented 2 years ago

Added -- I'll ship a new version shortly and you should be able to either leave the custom domain field empty or put a domain in that you registered with kutt.it

waclaw66 commented 2 years ago

A sorry, that was a missunderstanding. I meant support for Kutt running on own server, meaning access custom host directly instead of https://kutt.it to keep data in privacy. A custom URL shortening service with POST and headers support would also solve it.

fwenzel commented 2 years ago

Oh I did not realize. Maybe - that's getting very specific and I need features to be broadly applicable to users. There is a function already for leveraging a GET request API, maybe kutt supports that?

waclaw66 commented 2 years ago

Unfortunately Kutt uses POST only, therefore I mentioned an idea to add POST support to custom service configuration of this addon to more generic.