You are here

protected function MoxtraService::getUpdateBinderUrl in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::getUpdateBinderUrl()

Returns URL to update the binder.

Parameters

string $binder_id: Binder ID.

Return value

string URL.

1 call to MoxtraService::getUpdateBinderUrl()
MoxtraService::updateWorkspace in src/MoxtraService.php
Updates workspace (Moxtra binder).

File

src/MoxtraService.php, line 119

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

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