Hi, I'm working on getting Historical adherence data by management unit, we have 6 management units in total, the code works fine when getting download urls for the other 5 mu, there's one mu returns no data. I've tried to retrieve the same data by using developer tool, this mu does return download urls from there. Has anyone run into the same issue before? Any suggestions?
I would check the permissions on the OAuth Client Credential Grant you are using. When you use the API explorer the API execution is happening under your user oauth credentials. When you execute via your code, I suspect you are calling under an OAuth Client Credential that does not have the same permissions.
Thanks,
John Carnell
Manager, Developer Engagement