protected function MoxtraService::getAddUsersUrl in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::getAddUsersUrl()
Returns URL to add the users to the binder.
Parameters
int $owner_id: User ID.
string $binder_id: Binder ID.
Return value
string URL.
1 call to MoxtraService::getAddUsersUrl()
- MoxtraService::addUsersToWorkspace in src/
MoxtraService.php - Adds users to the workspace.
File
- src/
MoxtraService.php, line 167
Class
- MoxtraService
- Implements Moxtra REST API.
Namespace
Drupal\opigno_moxtraCode
protected function getAddUsersUrl($owner_id, $binder_id) {
$token = $this->moxtraConnector
->getToken($owner_id);
return $this->moxtraConnector
->getUrl() . "/v1/{$binder_id}/addorguser?access_token={$token}";
}