byteplus_sdk / byteplus-sdk-php
dev-master
2024-09-26 12:03 UTC
Requires
- php: >=7.1
- ext-json: *
- ext-openssl: *
- google/gax: *
- google/protobuf: *
- guzzlehttp/guzzle: ^7.0
- guzzlehttp/psr7: v1.9.0
This package is auto-updated.
Last update: 2024-09-26 12:56:05 UTC
README
composer require
composer require byteplus_sdk/byteplus-sdk-php
区域设置
- 当前有一个区域
- ap-singapore-1
- 默认为ap-singapore-1,如果需要,可以在初始化函数中指定区域参数:
$client = Iam::getInstance('us-east-1');
AK/SK设置
-
在代码中使用VodService方法setAccessKey/setSecretKey
-
设置环境变量 BYTEPLUS_ACCESSKEY="你的ak" BYTEPLUS_SECRETKEY="你的sk"
-
在~/.byteplus/config的json文件中:{"ak":"你的ak","sk":"你的sk"}
以上设置按照优先级从高到低
更多示例
示例