inboundasia / ranking-api-client
official Ranking API PHP Client
Installs: 3 319
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-curl: *
README
composer require inboundasia/ranking-api-client
Usages
Site Lists
$Client = new RankingClient($token);
$response = $Client->sitesList();
Site Create
$Client = new RankingClient($token);
$response = $Client->siteStore('https://ranking.works', 'Ranking', 'TW');
Site Keywords
$SiteId = 1474;
$Client = new RankingClient($token);
$response = $Client->siteKeywords($SiteId);
Site Rankings
$SiteId = 1474;
$SearchEngine = 'google';
$Client = new RankingClient($token);
$response = $Client->siteRankings($SiteId, $SearchEngine);
Update Site Ranking
$SiteId = 1474;
$Client = new RankingClient($token);
$response = $Client->updateSiteRanking($SiteId);
Add Keyword to Site
$SiteId = 1474;
$Keyword = '隱形牙套';
$Client = new RankingClient($token);
$response = $Client->siteKeywordStore($SiteId, $keyword);
Site Keyword Sync
$SiteId = 1474;
$Keywords = ['隱形牙套', '隱適美費用'];
$Client = new RankingClient($token);
$response = $Client->siteKeywordStore($SiteId, $keywords);
Delete Keyword
$KeywordId = 24821;
$Client = new RankingClient($token);
$response = $Client->deleteKeyword($KeywordId);
Query SERP Histories
$Client = new RankingClient($token);
$response = $Client->serpHistories(
'2022-05-08',
'https://www.bnext.com.tw/article/68428/itri040602',
['AMR趨勢'],
$exact = true
);