Skip to content

A simple YOURLS API plugin for reporting URL stats (clicks) in a specific time period.

License

Notifications You must be signed in to change notification settings

rinogo/yourls-time-period-clicks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Plugin for YOURLS 1.6+: Custom API Action

Description

Request stats (clicks) for a url or shorturl (required) between since (optional) and until (optional) using something like the following: https://sho.rt/yourls-api.php?username=xxxxx&password=yyyyy&format=json&action=url-stats-period&shorturl=abc&since=1540234300&until=1540234309

Return value

The API function returns click statistics that look something like this:

	{"statusCode":200,"message":"success","url-stats-period":{"clicks":"1"}}

Installation

  1. In /user/plugins, create a new folder named time-period-clicks.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins.php ) and activate the plugin.
  4. Have fun!

License

Released under the MIT License.

About

A simple YOURLS API plugin for reporting URL stats (clicks) in a specific time period.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages