mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 10:33:01 +03:00
2f87832532
* Extend the GSC API with search functionality * Fix typo in error tuple atom * log GSC errors * rename confusing variable name * Fix the API response format and error handling * Read results under the `results` key to be consistent with other endpoints * Return errors with a non-200 status code, and with an error payload that will be well constructed into ApiError * rebuild Google Keywords modal with useAPIClient * Add pagination support in Search Terms API * delete unused fixture file * rename fixture files * fix tests
18 lines
458 B
JSON
18 lines
458 B
JSON
[
|
|
{
|
|
"status": 400,
|
|
"url": "https://www.googleapis.com/oauth2/v4/token",
|
|
"method": "post",
|
|
"request_body": {
|
|
"client_id": "fake_client_id",
|
|
"client_secret": "fake_client_secret",
|
|
"grant_type": "refresh_token",
|
|
"redirect_uri": "http://localhost:8000/auth/google/callback",
|
|
"refresh_token": "*****"
|
|
},
|
|
"response_body": {
|
|
"error": "invalid_grant",
|
|
"error_description": "Bad Request"
|
|
}
|
|
}
|
|
] |