Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when calling list locations api #28

Open
dhirendralab opened this issue Jun 13, 2022 · 0 comments
Open

Getting error when calling list locations api #28

dhirendralab opened this issue Jun 13, 2022 · 0 comments

Comments

@dhirendralab
Copy link

getting some error when using listAccountsLocations()

$account_txt = "accounts/".$account_id;
$mybusinessService = new Google_Service_MyBusiness($client);
$locations = $mybusinessService->accounts_locations->listAccountsLocations($account_txt); 


{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "errors": [
      {
        "message": "Request contains an invalid argument.",
        "domain": "global",
        "reason": "badRequest"
      }
    ],
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "[type.googleapis.com/google.mybusiness.v4.ValidationError](http://type.googleapis.com/google.mybusiness.v4.ValidationError)",
        "errorDetails": [
          {
            "message": "This API will soon be deprecated. Please migrate all the usages to My Business Account Management API - https://developers.google.com/my-business/reference/accountmanagement/rest"
          }
        ]
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant