Services/NavitiaTokenManager.php
private function createAuthorization($userId, $instanceId)
    {
        $apiAll = $this->getNavitiaApiAllId();
        $this->call($this->tyrUrl . '/' . $this->version . '/users/' . $userId . '/authorizations/?api_id=' . $apiAll->id . '&instance_id=' . $instanceId, 'POST');

        return true;
    }
private function createAuthorization($userId, $instanceId)
    {
        $apiAll = $this->getNavitiaApiAllId();
        $this->call($this->tyrUrl . '/' . $this->version . '/users/' . $userId . '/authorizations/?api_id=' . $apiAll->id . '&instance_id=' . $instanceId, 'POST');

        return true;
    }
private function createAuthorization ( $ userId , $ instanceId ) { $ apiAll = $ this -> getNavitiaApiAllId ( ) ; $ this -> call ( $ this -> tyrUrl . '/' . $ this -> version . '/users/' . $ userId . '/authorizations/?api_id=' . $ apiAll -> id . '&instance_id=' . $ instanceId , 'POST' ) ; return true ; }
Add permissions to navitia user

@param int $userId
@param int $instanceId
@return boolean
Add permissions to navitia user