-
Notifications
You must be signed in to change notification settings - Fork 182
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
Passing Query string parameters in batch #179
Comments
request = request ?? new QueryableBaseRequest
{
Limit = base._limit
}; I will put this fix in when I am back to a computer |
Thanks 👍 |
OK let me know what they say. The fix I suggested still needs to be implemented so I will leave this as a bug. |
Mailchimp never got back to me, but it looks like they did fix passing in parameters with batches. They expect this form: {"operations":[ {
"method": "GET",
"path": "/lists/{listId}/members",
"params" : {
"status" : "unsubscribed",
"since_last_changed" : "2017-01-31T00:00:00+00:00",
"offset" : 0,
"count" : 20
}
}]
} |
Is this working currently then or no? |
Yes it is working, thank you. For anyone else having trouble make sure that the operation's parameter values are values that mailchimp would expect if you posted batch directly. Like so: operations.Add(new Operation
{
Method = "GET",
Path = $"/lists/{listId}/members",
Params = new {
status = "unsubscribed",
since_last_changed = "2017-01-31",
offset = 0,
count = 20
}
}) |
Stale issue message |
Hello! I am having some issue with passing query string parameters in batch operations.
I have tried the following for creating an
Operation
(where I add theOperation
to list to pass to theOperations
property inBatchRequest
)The response I get back from MC is
[]
.I also tried creating the
Params
object using the properties ofMemberRequest
as the Key but this gave me back all members.After looking through
BatchLogic
I figured I should useGetResponseAsync
as it uses aQueryableBaseRequest
, however, the request passed in is immediately overwritten.How can I preform a
GET
request with the following route?I have tested using Postman that this route works for my listID and returns data.
The text was updated successfully, but these errors were encountered: