-
I would like to dynamically create short URLs in a blog to use them as a permalink for the posts. This also works when creating them. However, since the script is executed every time the blog is reloaded, I only get an empty JSON array after the short URL has been created in YOURLS, so the short URL is no longer stored in the post. I would now like to query via API (PHP) whether the long URL is already in the YOURLS database and if so, I would like to get the short URL back. Neither in the documentation, nor here in the discussions or on Stackoverflow could I find an approach that helps me, so I ask here. Have I missed something? Is this even possible? Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm sorry. Found what I needed: https://github.com/timcrockford/yourls-api-edit-url |
Beta Was this translation helpful? Give feedback.
I'm sorry. Found what I needed: https://github.com/timcrockford/yourls-api-edit-url