6du.in/sdk

The short url service SDK by 6du.in

dev-master 2019-08-20 10:41 UTC

This package is auto-updated.

Last update: 2022-06-20 16:52:11 UTC


README

 composer require 6du.in/sdk

调用方法

include_once './vendor/autoload.php';

const SecretKey = '54a4be329214c553ICAgICA4454d25898be4ad7gMjU4Mg';
$api = new \Sixdu\V1\SDK(SecretKey);

try {
    $surl = $api->add('http://baidu.com/abc?a=1000');
    print_r($surl);
    echo "\n";
} catch (ErrorException $e) {
    echo $e->getMessage() . "\n" . $e->getTraceAsString();
    echo "\n";
}

调用细节请参考相关DEMO