]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - sample-public-api.txt
Add plain API format
[Github/YOURLS.git] / sample-public-api.txt
1 <?php
2
3 /* 
4  * This file shows how to implement a public API (no login or username needed) for your setup
5  * even if your install is private (no public access to admin area)
6  *
7  * Rename this file like "api.php" and put it in the same directory as yourls-api.php
8  *
9  */
10
11 define('YOURLS_PRIVATE', false);
12
13 require_once( dirname(__FILE__).'/yourls-api.php' );