-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
mirror api broken #315
Comments
You must always declare the resource under the var req = mirror.subscriptions.insert({
resource: {
callbackUrl: "http://example.com",
collection: "timeline"
}
});
console.log(req.href); // https://www.googleapis.com/mirror/v1/subscriptions (look, no url params here) This is different than the pre-1.0.x library, so I understand the confusion. Let me know if this helps you. |
You suggested |
yes, sorry, we have a whole set of mirror apis we're trying to upgrade to 1.0 api |
Have you taken a look at the MIGRATING guide here that might help explain all the changes we made to make your migration as smooth as possible. |
yeah, I glazed right over:
|
😄 |
Closing this under the impression that it's been resolved. Re-open if that's not the case @nikmartin Thanks! |
mirror.timeline.insert calls createAPIRequest with the Subscription Resource which encodes POST as url query params, but they have to be sent as a json Request Body payload.
Re: https://github.com/google/google-api-nodejs-client/blob/master/lib/apirequest.js#L192
and
Re :https://developers.google.com/glass/v1/reference/subscriptions/insert
When using the client this way, the Mirror API returns:
The text was updated successfully, but these errors were encountered: