Skip to content

Commit

Permalink
Added some documentation for this API service
Browse files Browse the repository at this point in the history
  • Loading branch information
yakatz authored Apr 14, 2024
1 parent b9dc755 commit 3bc4fde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/development/examples/qrcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ function ozh_yourls_qrcode( $request ) {
$keyword = yourls_sanitize_keyword( $matches[1] );
if( yourls_is_shorturl( $keyword ) ) {
// Show the QR code then!
// API documentation: https://goqr.me/api/doc/create-qr-code/
// Terms: Requesting IP and referrer are loged, but not requested QR data. Limit 10,000 requests per day.
header('Location: https://api.qrserver.com/v1/create-qr-code/?size=200x200&qzone=2&ecc=M&data='.YOURLS_SITE.'/'.$keyword);
exit;
}
Expand Down

0 comments on commit 3bc4fde

Please sign in to comment.