BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
app
/
Packages
/
Creatify
/
Api
📤 Upload
📝 New File
📁 New Folder
Close
Editing: Voices.php
<?php namespace App\Packages\Creatify\Api; use Illuminate\Http\JsonResponse; class Voices { public function __construct(protected BaseApiClient $client) {} /** * get voices * * @see https://docs.creatify.ai/api-reference/voices/get-apivoices */ public function getVoices(): JsonResponse { $res = $this->client->request('get', 'api/voices/'); return $this->client->jsonStatusResponse($res); } /** * Get voices with pagination * * * @see https://docs.creatify.ai/api-reference/voices/get-apivoices-paginated * * @param array $params //prvoide page and page_size for parameter */ public function getVoicesWithPagination(array $params): JsonResponse { $res = $this->client->request('get', 'api/voices/paginated/', $params); return $this->client->jsonStatusResponse($res); } }
Save
Cancel