You are here

public function SmartlingApi::putResource in TMGMT Translator Smartling 8

File

src/Smartling/SmartlingApi.php, line 434

Class

SmartlingApi

Namespace

Drupal\tmgmt_smartling\Smartling

Code

public function putResource($data, $filenames) {
  $orgID = $data['orgId'];
  unset($data['orgId']);

  ///context-api/v2/js/projects/{orgId}/resources/{resourceId}
  return $this
    ->sendRequest('js/projects/' . $orgID . '/resources/' . $data['resourceId'], $data, 'PUT', $filenames);
}