You are here

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

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

Returns URL to send a message to the the binder.

Parameters

int $owner_id: User ID.

string $binder_id: Binder ID.

Return value

string URL.

1 call to MoxtraService::getSendMessageUrl()
MoxtraService::sendMessage in src/MoxtraService.php
Sends message to the workspace.

File

src/MoxtraService.php, line 151

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

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