mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
12 lines
294 B
PHP
12 lines
294 B
PHP
<?php
|
|
require_once __DIR__ . '/../autoload.php';
|
|
|
|
use Qiniu\Auth;
|
|
|
|
// 用于签名的公钥和私钥. http://developer.qiniu.com/docs/v6/api/overview/security.html#aksk
|
|
$accessKey = 'Access_Key';
|
|
$secretKey = 'Secret_Key';
|
|
|
|
// 初始化签权对象。
|
|
$auth = new Auth($accessKey, $secretKey);
|