HttpClient.php
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)
        ))));
    }
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)
        ))));
    }
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 ) ) ) ) ) ; }
Sends the data to Segment.io for the given user id.

@param string $userId
Sends the data to Segment . io for the given user id .