PHP code example of locomotivemtl / o6c-client
1. Go to this page and download the library: Download locomotivemtl/o6c-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
locomotivemtl / o6c-client example snippets
$client = new \Only6\Client('https://o6c.ca', $username, $password);
$ret = $client->shorten('https://example.com/my-long-url');
echo $ret['short'];