alibabacloud/viapi-utils

Alibaba Cloud Viapi Utils Library for PHP

0.1.3 2020-05-28 07:46 UTC

This package is auto-updated.

Last update: 2024-12-09 11:42:32 UTC


README

English | 简体中文

Alibaba Cloud Viapi Utils Library for PHP

Installation

Composer

composer require alibabacloud/viapi-utils

Demo

<?php
namespace demo;

require __DIR__ . '/vendor/autoload.php';

use AlibabaCloud\SDK\ViapiUtils\ViapiUtils;
use AlibabaCloud\Tea\Exception\TeaUnableRetryError;

try {
    $url = ViapiUtils::upload("<Access-Key-Id>", "<Access-Key-Secret>", "<File-Path>");
    var_dump($url);
} catch (TeaUnableRetryError $e) {
    var_dump($e->getMessage());
    var_dump($e->getErrorInfo());
    var_dump($e->getLastException());
    var_dump($e->getLastRequest());
}

Issues

Opening an Issue, Issues not conforming to the guidelines may be closed immediately.

Changelog

Detailed changes for each release are documented in the release notes.

References

License

Apache-2.0

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.