Skip to content

mirror api broken #315

@nikmartin

Description

@nikmartin

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:

{ errors: 
   [ { domain: 'global',
       reason: 'required',
       message: 'collection field is required for Subscription' },
     { domain: 'global',
       reason: 'required',
       message: 'callbackUrl field is required for Subscription' } ],
  code: 400,
  message: 'collection field is required for Subscription' }

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions