{"comment":{"url":"https://api.github.com/repos/ice6/PredictionIO-PHP-SDK/comments/15018822","html_url":"https://github.com/ice6/PredictionIO-PHP-SDK/commit/12ec810c385d0651a858dcc0d244d69f135f37d3#commitcomment-15018822","id":15018822,"user":{"login":"dantudor","id":1281127,"avatar_url":"https://avatars.githubusercontent.com/u/1281127?v=3","gravatar_id":"","url":"https://api.github.com/users/dantudor","html_url":"https://github.com/dantudor","followers_url":"https://api.github.com/users/dantudor/followers","following_url":"https://api.github.com/users/dantudor/following{/other_user}","gists_url":"https://api.github.com/users/dantudor/gists{/gist_id}","starred_url":"https://api.github.com/users/dantudor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantudor/subscriptions","organizations_url":"https://api.github.com/users/dantudor/orgs","repos_url":"https://api.github.com/users/dantudor/repos","events_url":"https://api.github.com/users/dantudor/events{/privacy}","received_events_url":"https://api.github.com/users/dantudor/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"12ec810c385d0651a858dcc0d244d69f135f37d3","created_at":"2015-12-16T16:12:24Z","updated_at":"2015-12-16T16:12:24Z","body":"You could just:\r\nreturn $this->sendRequest('POST', '/batch'.$this->eventUrl, json_encode($data));"}}