its/yandex-api

Yandex API 的 PHP 库

dev-master / dev-master 2013-11-15 06:08 UTC

This package is not auto-updated.

Last update: 2020-06-08 08:45:19 UTC


README

Yandex API 的 PHP 库

文档

完整的 Yandex API 文档可在 http://api.yandex.ru/ 查找

以下示例中使用的直接 API 可在 http://api.yandex.ru/direct/doc/concepts/About.xml 查找,认证说明可在 http://api.yandex.ru/direct/doc/concepts/auth-token.xml 查找

使用方法

<?php

use Yandex\Direct;

// create api
$api = new Direct('https://api.direct.yandex.ru/live/v4/json/', '443', $appId, $appToken);

// get client info for your login
$infos = $api->GetClientInfo();

// get client info for login 'bill'
$infos = $api->GetClientInfo('bill');

// get client info for logins 'bill' and 'joe'
$infos = $api->GetClientInfo(array('bill', 'joe'));

// and so on.. read full API documentation