Skip to content

Adds a custom YOURLS API action 'regenerate_url' to generate a new keyword for a URL that has already been shortened.

Notifications You must be signed in to change notification settings

TheLeonKing/yourls-api-regenerate-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YOURLS API - Regenerate URL

Plugin for YOURLS v1.7 (earlier versions not tested). Adds a custom API action regenerate_url, which generates a new keyword for a URL that has already been shortened.

Description

The API action regenerate_url accepts two parameters:

  • old: the URL you want to regenerate. Accepts both keywords (abc) and shortened URL's (http://sho.rt/abc).
  • new (optional): the new keyword for the shortened URL. If this parameter is not passed, a random keyword will be generated (according to the rules and plugins you currently use).

Installation

  1. Copy this folder to /user/plugins.
  2. Go to the Plugins Administration page (e.g. http://sho.rt/admin/plugins.php) and activate the plugin.
  3. Have fun!

License

YOURLS' license, aka "Do whatever the hell you want with it".

Contact

Feel free to contact me through GitHub if you have feedback or questions!

About

Adds a custom YOURLS API action 'regenerate_url' to generate a new keyword for a URL that has already been shortened.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages