public function addToRoster($username, $jid, $name=false, $subscriptionType=false)
    {
        $endpoint = '/users/'.$username.'/roster';
        return $this->doRequest('POST', $endpoint, compact('jid','name','subscriptionType'));
    }
public function addToRoster($username, $jid, $name=false, $subscriptionType=false)
    {
        $endpoint = '/users/'.$username.'/roster';
        return $this->doRequest('POST', $endpoint, compact('jid','name','subscriptionType'));
    }
public function addToRoster ( $ username , $ jid , $ name = false , $ subscriptionType = false ) { $ endpoint = '/users/' . $ username . '/roster' ; return $ this -> doRequest ( 'POST' , $ endpoint , compact ( 'jid' , 'name' , 'subscriptionType' ) ) ; }
Adds to this OpenFire user's roster

@param   string          $username       	Username
@param   string          $jid            	JID
@param   string|false    $name           	Name         (Optional)
@param   int|false       $subscriptionType   	Subscription (Optional)
@return  json|false                     		Json with data or error, or False when something went fully wrong
Adds to this OpenFire user s roster