You are here

protected function MoxtraService::getCreateBinderUrl in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::getCreateBinderUrl()

Returns URL to create the binder.

Parameters

int $owner_id: User ID.

Return value

string URL.

1 call to MoxtraService::getCreateBinderUrl()
MoxtraService::createWorkspace in src/MoxtraService.php
Creates workspace (Moxtra binder).

File

src/MoxtraService.php, line 105

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

protected function getCreateBinderUrl($owner_id) {
  $token = $this->moxtraConnector
    ->getToken($owner_id);
  return $this->moxtraConnector
    ->getUrl() . "/v1/me/binders?access_token={$token}";
}