接入教程
https://www.filestack.com/docs/
Python 文件上传示例
python
import filestack
client = filestack.Client(api_key='YOUR_API_KEY')
filelink = client.upload(filepath='path/to/file.jpg')
PHP 文件上传示例
php
<?php
$client = new Filestack\FilestackClient('YOUR_API_KEY');
$filelink = $client->upload('path/to/file.jpg');
?>
JavaScript 文件上传示例
javascript
const client = filestack.init('YOUR_API_KEY');
client.upload('path/to/file.jpg').then(response => console.log(response));
常见问题
Filestack 是否免费?
Filestack 提供21天免费试用,包含75 GB带宽、20,000次上传和50,000次转换。
如何获取 API 密钥?
注册 Filestack 账户后,可在控制面板中找到您的 API 密钥。
Aitishiku.com