byteplus_sdk/byteplus-sdk-php

dev-master 2023-11-02 12:31 UTC

This package is auto-updated.

Last update: 2024-05-01 00:17:21 UTC


README

composer require

composer require byteplus_sdk/byteplus-sdk-php

Region Setting

  • Currently one region
    - ap-singapore-1
    
  • Default ap-singapore-1, Specify region as param in init function if needed:
    $client = Iam::getInstance('us-east-1');
    

AK/SK Setting

  • Use VodService method setAccessKey/setSecretKey in code

  • Set env variables BYTEPLUS_ACCESSKEY="your ak" BYTEPLUS_SECRETKEY = "your sk"

  • json file at ~/.byteplus/config:{"ak":"your ak","sk":"your sk"}

Above will take precedence from high to low

More examples:

example