public function updateRoster($username, $jid, $nickname=false, $subscriptionType=false)
    {
        $endpoint = '/users/'.$username.'/roster/'.$jid;
        return $this->doRequest('PUT', $endpoint, $jid, compact('jid','username','subscriptionType'));     
    }
public function updateRoster($username, $jid, $nickname=false, $subscriptionType=false)
    {
        $endpoint = '/users/'.$username.'/roster/'.$jid;
        return $this->doRequest('PUT', $endpoint, $jid, compact('jid','username','subscriptionType'));     
    }
public function updateRoster ( $ username , $ jid , $ nickname = false , $ subscriptionType = false ) { $ endpoint = '/users/' . $ username . '/roster/' . $ jid ; return $ this -> doRequest ( 'PUT' , $ endpoint , $ jid , compact ( 'jid' , 'username' , 'subscriptionType' ) ) ; }
Updates this OpenFire user's roster

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