You are here

function GLExchange::downloadTarget in GlobalLink Connect for Drupal 7.7

* Downloads target document from PD * *

Parameters

* $ticket: * Target ticket to download

File

gl_ws/glc/GLExchange.php, line 519

Class

GLExchange

Code

function downloadTarget($ticket) {
  $downloadTargetResourceRequest = new downloadTargetResource();
  $downloadTargetResourceRequest->targetId = $ticket;
  $repositoryItem = $this->targetService
    ->downloadTargetResource($downloadTargetResourceRequest)->return;
  return $repositoryItem->data->_;
}