Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rosano/yourls-api-action-list

YOURLS plugin: how to implement a custom API action
https://github.com/rosano/yourls-api-action-list

Last synced: 23 days ago
JSON representation

YOURLS plugin: how to implement a custom API action

Lists

README

        

# Plugin for YOURLS 1.6+: Custom API Action (list all keywords)

This plugin adds a custom API action at `list` to show all keywords used:

## Sample result

Using a URL such as `https://alfa.bravo/yourls-api.php?username=charlie&password=delta&action=list&format=json`:

```json
{
"statusCode": 200,
"message": "success",
"result": [
{
"keyword": "alfa"
},
{
"keyword": "bravo"
},
{
"keyword": "charlie"
}
]
}

```

# Setup

1. Upload this folder to `/user/plugins`.
2. Activate this plugin from the Plugins administration page.