{"action":"created","issue":{"url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/31","labels_url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/31/comments","events_url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/31/events","html_url":"https://github.com/VisualAppeal/Piwik-PHP-API/issues/31","id":115792903,"number":31,"title":"getCustomVariables always emtpy","user":{"login":"pixelpaulaus","id":6814438,"avatar_url":"https://avatars.githubusercontent.com/u/6814438?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelpaulaus","html_url":"https://github.com/pixelpaulaus","followers_url":"https://api.github.com/users/pixelpaulaus/followers","following_url":"https://api.github.com/users/pixelpaulaus/following{/other_user}","gists_url":"https://api.github.com/users/pixelpaulaus/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelpaulaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelpaulaus/subscriptions","organizations_url":"https://api.github.com/users/pixelpaulaus/orgs","repos_url":"https://api.github.com/users/pixelpaulaus/repos","events_url":"https://api.github.com/users/pixelpaulaus/events{/privacy}","received_events_url":"https://api.github.com/users/pixelpaulaus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-09T04:56:52Z","updated_at":"2015-11-09T08:16:15Z","closed_at":"2015-11-09T08:10:18Z","body":"why when i do:\r\n\r\n    $piwik->setDate('today');\r\n    $piwik->setPeriod('week');\r\n    $piwik->getCustomVariables();\r\n\r\nit is always emtpy the results, but this works when i do it direct with piwik:\r\n?module=API&method=CustomVariables.getCustomVariables&idSite=1&idSubtable=1&period=week&date=today&format=XML&token_auth=CODEHERE\r\n\r\nand every other get function seems to work fine."},"comment":{"url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/comments/154993851","html_url":"https://github.com/VisualAppeal/Piwik-PHP-API/issues/31#issuecomment-154993851","issue_url":"https://api.github.com/repos/VisualAppeal/Piwik-PHP-API/issues/31","id":154993851,"user":{"login":"thelfensdrfer","id":699106,"avatar_url":"https://avatars.githubusercontent.com/u/699106?v=3","gravatar_id":"","url":"https://api.github.com/users/thelfensdrfer","html_url":"https://github.com/thelfensdrfer","followers_url":"https://api.github.com/users/thelfensdrfer/followers","following_url":"https://api.github.com/users/thelfensdrfer/following{/other_user}","gists_url":"https://api.github.com/users/thelfensdrfer/gists{/gist_id}","starred_url":"https://api.github.com/users/thelfensdrfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelfensdrfer/subscriptions","organizations_url":"https://api.github.com/users/thelfensdrfer/orgs","repos_url":"https://api.github.com/users/thelfensdrfer/repos","events_url":"https://api.github.com/users/thelfensdrfer/events{/privacy}","received_events_url":"https://api.github.com/users/thelfensdrfer/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T08:16:15Z","updated_at":"2015-11-09T08:16:15Z","body":"I get two different results, they are the same whether i insert the url in the browser or use the api.\r\n\r\nfor today https://demo.piwik.org/index.php?module=API&method=CustomVariables.getCustomVariables&idSite=7&period=week&date=2015-11-09&format=XML&token_auth=\r\n```xml\r\n<result>\r\n<row>\r\n<label>Forum status</label>\r\n<nb_visits>3</nb_visits>\r\n<nb_actions>4</nb_actions>\r\n<max_actions>2</max_actions>\r\n<sum_visit_length>7</sum_visit_length>\r\n<bounce_count>2</bounce_count>\r\n<nb_visits_converted>0</nb_visits_converted>\r\n<sum_daily_nb_uniq_visitors>3</sum_daily_nb_uniq_visitors>\r\n<sum_daily_nb_users>0</sum_daily_nb_users>\r\n<segment>customVariableName==Forum+status</segment>\r\n<idsubdatatable>1</idsubdatatable>\r\n</row>\r\n</result>\r\n```\r\n\r\nand for yesterday https://demo.piwik.org/index.php?module=API&method=CustomVariables.getCustomVariables&idSite=7&period=week&date=2015-11-08&format=XML&token_auth=\r\n```xml\r\n<result>\r\n<row>\r\n<label>Forum status</label>\r\n<nb_visits>5868</nb_visits>\r\n<nb_actions>11694</nb_actions>\r\n<max_actions>100</max_actions>\r\n<sum_visit_length>796903</sum_visit_length>\r\n<bounce_count>4199</bounce_count>\r\n<goals>\r\n<row idgoal=\"1\">\r\n<nb_conversions>57</nb_conversions>\r\n<nb_visits_converted>57</nb_visits_converted>\r\n<revenue>171</revenue>\r\n</row>\r\n<row idgoal=\"2\">\r\n<nb_conversions>84</nb_conversions>\r\n<nb_visits_converted>84</nb_visits_converted>\r\n<revenue>84</revenue>\r\n</row>\r\n<row idgoal=\"3\">\r\n<nb_conversions>12</nb_conversions>\r\n<nb_visits_converted>12</nb_visits_converted>\r\n<revenue>12</revenue>\r\n</row>\r\n</goals>\r\n<nb_conversions>153</nb_conversions>\r\n<revenue>267</revenue>\r\n<sum_daily_nb_uniq_visitors>5299</sum_daily_nb_uniq_visitors>\r\n<sum_daily_nb_users>0</sum_daily_nb_users>\r\n<nb_visits_converted>0</nb_visits_converted>\r\n<segment>customVariableName==Forum+status</segment>\r\n<idsubdatatable>1</idsubdatatable>\r\n</row>\r\n<row>\r\n<label>Anonymous</label>\r\n<nb_visits>1</nb_visits>\r\n<nb_actions>3</nb_actions>\r\n<max_actions>3</max_actions>\r\n<sum_visit_length>165</sum_visit_length>\r\n<bounce_count>0</bounce_count>\r\n<nb_visits_converted>0</nb_visits_converted>\r\n<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>\r\n<sum_daily_nb_users>0</sum_daily_nb_users>\r\n<segment>customVariableName==Anonymous</segment>\r\n<idsubdatatable>2</idsubdatatable>\r\n</row>\r\n</result>\r\n```"}}