public function sendData($userId)
    {
        $this->client->post('http://api.segment.io/v1/import', array('body' => json_encode(array(
            'secret' => $this->getWriteKey(),
            'batch'  => $this->buildBatch($userId)
        ))));
    }