The CustomVariables.getCustomVariablesValuesFromNameId API endpoint does not seem to work in API bulk mode.
e.g. the following works fine for me:
http://8.8.8.8/piwik/?module=API&method=CustomVariables.getCustomVariablesValuesFromNameId&format=json&token_auth=XXX&idSite=1&period=day&date=2014-06-01,today&idSubtable=1
however when using the same request in a API bulk query I get an exception (see attachment).
I assume the id of the subtable is okay because its the id I got from CustomVariables.getCustomVariables.
Other requests work fine in a bulk query, it’s only this one that’s throwing the exception.
thx for your help
matthieu
(Matthieu Aubry)
June 13, 2014, 3:17am
2
Could you please paste here both commands that you type, eg using "curl"
eg. 1) bulk request with the one request 2) the one request alone
see: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3
Hey, sure
heres the curl for the bulk request (doesnt work for me):
curl --globoff "http://8.8.8.8/piwik/?module=API&method=API.getBulkRequest&format=json&token_auth=90871c8584ddf2265f54553a305b6ae1&urls[0]=method%3DCustomVariables.getCustomVariablesValuesFromNameId%26period%3Dday%26idSubtable%3D1%26idSite%3Dall%26date%3D2014-06-01%2Ctoday"
same thing in non bulk mode (works for me):
curl "http://8.8.8.8/piwik/?module=API&method=CustomVariables.getCustomVariablesValuesFromNameId&format=json&token_auth=90871c8584ddf2265f54553a305b6ae1&idSite=1&period=day&date=2014-06-01,today&idSubtable=1"
thx for looking into this
matthieu
(Matthieu Aubry)
June 23, 2014, 6:20am
4