From 26e9b6591636c5752473d6610fff59772c8911cc Mon Sep 17 00:00:00 2001 From: Felix Schulze <8378750+schulzefelix@users.noreply.github.com> Date: Sun, 11 Apr 2021 14:04:06 +0200 Subject: [PATCH] Update Readme --- CHANGELOG.md | 4 +++- README.md | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d3220b..cd3741e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,10 @@ All Notable changes to `laravel-search-console` will be documented in this file. ## [1.7.0] - 2021-04-11 +- Add 'dataState' request and response parameter + +## [1.6.1] - 2021-03-09 - Add Compatibility with PHP 8 -- Add 'dataState' request parameter ## [1.6.0] - 2020-09-14 - Add Compatibility With Laravel 8 diff --git a/README.md b/README.md index ee610d6..a45e594 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,8 @@ $sites = SearchConsole::setAccessToken($token)->listSites(); ['query', 'page', 'country', 'device', 'date'], [['dimension' => 'query', 'operator' => 'notContains', 'expression' => 'cheesecake']], 1000, - 'web' + 'web', + 'all' ); ``` @@ -129,7 +130,7 @@ public function public function listSites(): Collection ### Retrieve Search Analytics Data ```php -public function searchAnalyticsQuery(string $siteUrl, Period $period, array $dimensions = [], array $filters = [], int $rows = 1000, string $searchType = 'web'): Collection +public function searchAnalyticsQuery(string $siteUrl, Period $period, array $dimensions = [], array $filters = [], int $rows = 1000, string $searchType = 'web', string $dataState = 'final'): Collection ``` ### Check Access Token