Open
Description
I spent a while diagnosing why my calls to getOrganizationNetworks()
did not return ~20% of the networks that I expected to see.
My call was:
getOrganizationNetworks(organizationId="000000000000000000", direction= "prev", total_pages= "all", per_page=100000)
I got back about 8500 networks; I expected about 10750.
At first, I thought it might be a concurrency problem (I use the meraki api with mpire
), but the concurrency investigation was a dead-end.
Short story, one of my parameter names is incorrect. per_page
should be perPage
. It doesn't help that some getOrganizationNetworks()
API keywords are snake case, and others are camel case. After I fixed the problem, I got all the networks that I expected. However, I don't think this should happen. If I call the Meraki API an unsupported kwarg
, you should throw a warning or error.