nexxomnia/apiclient-php

PHP版的nexxOMNIA API客户端

1.6.3 2024-08-18 13:31 UTC

README

nexxOMNIA API客户端提供轻松访问所有API端点的功能。

入门指南

$ composer require nexxomnia/apiclient-php
use nexxomnia\apiclient;
use nexxomnia\apicalls\mediacall;
use nexxomnia\enums\streamtypes;

$apiclient = new apiclient();
$apiclient->configure(999,"API-SECRET","SESSION-ID");

$apicall = new mediacall(streamtypes::VIDEO);
$apicall->latest();

$result=$apiclient->call($apicall);

echo $result->getResultIterator(TRUE)->current()->getGeneral()->getID(); // outputs the ID of the first Element

资源

请在此链接中找到所有进一步的文档和使用示例。