upload_token.php 245 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 <?php require_once __DIR__ . '/../autoload.php'; use Qiniu\Auth; $accessKey = 'Access_Key'; $secretKey = 'Secret_Key'; $auth = new Auth($accessKey, $secretKey); $bucket = 'Bucket_Name'; $upToken = $auth->uploadToken($bucket); echo $upToken;