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