You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot submit multiple categories to Categories Statistics endpoint #186
This seems to be a bug, as the Sendgrid docs clearly state sending multiple categories is supported, and there doesn't seem to be a way to do that with this client.
I believe the issue is actually here, in the python-http-client lib. urlencode should be passed a second parameter, (doseq), which will correctly format multiple values for parameters. (urlencode docs)
My use case is that I am looking to export a dataset with all the stats for every single email category in my SendGrid account (which at this point is over a 100). This dataset will be used for internal reporting and analytics on email performance by being imported into a business intelligence software.
Currently, I have a workaround for this: making multiple calls offsetting each call by 10 starting from 0 and then combining the output. However as the number of categories keeps increasing lifting the cap on number of categories will help streamline the code.
Activity
thinkingserious commentedon Jul 8, 2016
Solved with sendgrid/python-http-client#11
Version Bump v3.0.4: Fix issue #186
ninadamondikar commentedon Sep 10, 2017
While multiple categories can be passed for Category Statistics, passing any more than 10 categories in the params leads to a 400 Bad Request error.
Code to Reproduce
Is there a way this limit can be lifted?
Thanks!
thinkingserious commentedon Sep 11, 2017
Hi @ninadamondikar,
This is a limitation of the API. I will pass along your feedback to the product team. Could you please describe your use case?
With Best Regards,
Elmer
ninadamondikar commentedon Sep 12, 2017
Hi -
My use case is that I am looking to export a dataset with all the stats for every single email category in my SendGrid account (which at this point is over a 100). This dataset will be used for internal reporting and analytics on email performance by being imported into a business intelligence software.
Currently, I have a workaround for this: making multiple calls offsetting each call by 10 starting from 0 and then combining the output. However as the number of categories keeps increasing lifting the cap on number of categories will help streamline the code.
Thanks!
Ninad
thinkingserious commentedon Sep 12, 2017
Hello @ninadamondikar,
Do you mind opening up a new issue specifically for this request? I'd like to try and get better visibility to increase its priority.
Thanks!
With Best Regards,
Elmer