-
Notifications
You must be signed in to change notification settings - Fork 316
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
MyBusinessQA Service has wrong paths #956
Comments
Fixing by #1010 |
The discovery doc shows the path we have in the library here as the path for listing questions. There's nothing we can do here unless that changes. I would suggest contacting the API team if you think this is an error. The maintainers of this repo only make sure the generated clients match the API's discovery doc, and do not support any specific API usage questions (there are over 200 APIs, so it would be impossible for us to do that) |
I'm looking into the Update: The |
So, looking at the discovery doc, the parent parameter should contain "/questions" in the path: {
"list": {
"parameters": {
"parent": {
"description": "Required. The name of the location to fetch questions for.",
"location": "path",
"required": true,
"type": "string",
"pattern": "^locations/[^/]+/questions$"
},
}
} So the correct usage should be: $qaService = new MyBusinessQA($client);
$questions = $qaService->locations_questions->listLocationsQuestions('locations/LOCATION_NAME/questions'); I agree this is not very intuitive, but I believe this is how the API is designed. |
In
src/MyBusinessQA.php
forlocations_questions
there are wrong paths for methods create and list, fot both should be:not:
Steps to reproduce
The text was updated successfully, but these errors were encountered: