Create a URL w/o header? #1974
-
Shlink version3.7.3 PHP version8.3 How do you serve ShlinkSelf-hosted Apache Database engineMySQL Database version5.7.23-23 SummaryI found issue #147 but don't think it's been implemented based on following the trail. However what I am wondering is if there is a way to author short URLs by putting the API Key in the url itself (i.e. not use headers). This is necessary for me as I use dlvr.it to post links to various news articles, and it supports 3rd party shortening, but only via a single URL specifier so I can't add my API key. My previous hosted shortener - Yourls - allowed for this but I like shlink's UI and some of the additional features so am hoping I can use it here as well Looking thru the docs it doesn't seem like I can do this, but thought I'd ask. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, that feature was implemented: https://api-spec.shlink.io/#/Short%20URLs/shortenUrl The endpoint is marked as deprecated basically because
EDIT: see my clarification below. |
Beta Was this translation helpful? Give feedback.
Yes, that feature was implemented: https://api-spec.shlink.io/#/Short%20URLs/shortenUrl
The endpoint is marked as deprecated basically because
using that is a terrible idea from a security point of view, and I don't want people to end up using it if they can avoid it.I want to keep a single way to do things that follows proper API design, and that GET endpoint won't receive more features.It's very unfortunate that services that allow you to integrate your own URL shortener are so limited, so I would suggest trying to contact them and letting them know how bad that is (your API key will travel in plain text, even for encrypted connections).That said, the endpoint won't go away, so you c…