image4io/image4iophp-sdk

该软件包已废弃,不再维护。未建议替代软件包。

image4.io的PHP SDK

1.0.4 2020-11-29 09:35 UTC

This package is auto-updated.

Last update: 2023-03-01 00:37:38 UTC


README

altText

altText altText altText

Image4ioPhpSDK

image4io是一个云服务,您的图片可在此处上传、移动、复制、检索、删除。

安装

可以通过以下命令安装Composer软件包

composer require image4io/image4iophp-sdk

配置

要向API发送请求,首先必须以字符串形式提供APIKey和APISecret。所需密钥可以从image4io控制台获取。

use Image4IO\Image4ioApi;

$apiKey = 'apiKey';
$apiSecret = 'apiSecret';

$api = new Image4ioApi($apiKey, $apiSecret);
$result = $api->getImage('/example.png');

可用的请求

此SDK目前支持16个请求。

  • GetSubscription
  • GetImage
  • UploadImage
  • FetchImage
  • CopyImage
  • MoveImage
  • DeleteImage
  • CreateFolder
  • DeleteFolder
  • ListFolder
  • StartUploadStream
  • UploadStreamPart
  • FinalizeStream
  • GetStream
  • FetchStream
  • DeleteStream

文档可在以下位置找到:[image4io API文档](https://image4.io/en/documentation)

联系我们

Image4io团队随时准备为您提供支持,请随时联系我们。

关注我们

许可证

MIT