Open bbqrob opened 3 years ago
Hey @bbqrob. Can you try the newest release (https://github.com/Fuhrmann/keypirinha-url-shortener/releases/tag/1.2)?
Assuming you are already running your shlink instance, you have to generate your own API_KEY (https://shlink.io/documentation/api-docs/authentication/).
If you are running shlink through docker you can execute:
docker exec -it shlink shlink api-key:generate
[OK] Generated API key: "fd0a18fe-78f7-4f8f-be5d-232d718c89c3"
Specify the API_KEY into this package's configuration file and change your main service:
# The URL used by Shlink's service
# Generate your api key by accessing: https://shlink.io/documentation/api-docs/
# The API_KEY is required.
[shlink]
API_URL = https://YOUR_URL_HERE/rest/v2/short-urls/shorten?apiKey=
API_KEY = fd0a18fe-78f7-4f8f-be5d-232d718c89c3
Don't forget to update the API_URL to match the domain you are using in your shlink instance.
After that change the main_service
in this package's configuration file:
[main]
# Here you can specify the main service used to shorten the url
# Accepted values: tinyurl, isgood, bitly
# * Default: tinyurl
main_service=shlink
And it should work!
Here it's my shlink instance I've setup for demonstration purposes using docker and using the domain https://shlink.local.dev
:
Let me know if you have any problems.
Is there some way to integrate shlink.io as an url-shortener to your addon?