Open holsted opened 8 years ago
The assignee
should I believe be passed in data
, not dispatchOptions
? Have you tried that?
So something like client.task.create({assignee: user_id})
If that doesn't work I can dig deeper. There's some amount of auto-generation of code which means that not every option is always used, so while the dispatchOptions
is ignored in dispatch
I don't think that affects your specific use-case.
@agnostic I am passing the assignee id in the data for the create. I was just hoping to expand the full object in the response.
wrong user @andrewholsted ;P
Whoops. @agnoster...
Any progress on that, as dispatchOptions still seems to be ignored...
I was trying to
populateexpand theassignee
field when callingclient.tasks.create
and it doesn't appear the dispatchOptions are actually being used anywhere. Here's the relevant dispatch callAs a quick test, passing it inside of
dispatch.post
explicitly does workI'm happy to work on a pull request, but would like a little guidance on implementation. Are
dispatchOptions
only used forPUT
andPOST
? Looks like it's in the function signature forGET
andDELETE
as well though forGET
I think those options should be passed in the query string?