podcasthosting / auphonic-client
一个PHP库,通过其API访问音频服务Auphonic。
v0.9.3
2024-05-08 14:20 UTC
Requires
- php: >=7.2.0
- ext-json: *
- guzzlehttp/guzzle: ^7.5.0
- kriswallsmith/buzz: ^1.2.1
- league/oauth2-client: ^2.7
- nyholm/psr7: ^1.5.1
Requires (Dev)
- phpunit/phpunit: ^9.5.24
README
一个PHP库,通过其API访问音频服务Auphonic。
使用方法
通过token进行身份验证
$token = ''; // Your Auphonic API token
$client = new \podcasthosting\Auphonic\Client();
$client->setToken($token);
或者使用用户名/密码
$username = ''; // Your Auphonic username
$password = ''; // Your Auphonic password
$client->allowUserPasswordAuthentification();
$client->setUsername($username);
$client->setPassword($password);
访问数据
$client->setPreset(new \podcasthosting\Auphonic\Client\Preset());
$presets = $client->preset()->getList();
由Podcast Hosting服务podcaster使用和创建。