webjeyros / bing-webmaster-api
Bing 网站管理员 API 客户端
dev-master
2020-11-17 15:28 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ^6.2.0
- guzzlehttp/psr7: ^1.2
This package is not auto-updated.
Last update: 2024-09-19 01:03:23 UTC
README
Bing 网站管理员 API 客户端
安装
composer require webjeyros/bing-webmaster-api
示例用法
use bingWebmaster\actions\GetUserSites; require_once __DIR__.'/../vendor/autoload.php'; $client = new GuzzleHttp\Client(); $webmaster = new \bingWebmaster\client('__API-KEY-HERE__',$client); $sites=$webmaster->request(new GetUserSites()); foreach ($sites as $site) { if (!$site->IsVerified) printf("Site %s is not verified. Authentication code is %s".PHP_EOL,$site->Url,$site->AuthenticationCode); }