Trustly/Api/api.php
public function call($request) {
		if($this->insertCredentials($request) !== TRUE) {
			throw new Trustly_DataException('Unable to add authorization criterias to outgoing request');
		}
		$this->last_request = $request;

		$jsonstr = $request->json();

		$url = $this->url($request);
		list($body, $response_code) = $this->post($url, $jsonstr);

		$result = $this->handleResponse($request, $body, $response_code);
		return $result;
	}
public function call($request) {
		if($this->insertCredentials($request) !== TRUE) {
			throw new Trustly_DataException('Unable to add authorization criterias to outgoing request');
		}
		$this->last_request = $request;

		$jsonstr = $request->json();

		$url = $this->url($request);
		list($body, $response_code) = $this->post($url, $jsonstr);

		$result = $this->handleResponse($request, $body, $response_code);
		return $result;
	}
public function call ( $ request ) { if ( $ this -> insertCredentials ( $ request ) !== TRUE ) { throw new Trustly_DataException ( 'Unable to add authorization criterias to outgoing request' ) ; } $ this -> last_request = $ request ; $ jsonstr = $ request -> json ( ) ; $ url = $ this -> url ( $ request ) ; list ( $ body , $ response_code ) = $ this -> post ( $ url , $ jsonstr ) ; $ result = $ this -> handleResponse ( $ request , $ body , $ response_code ) ; return $ result ; }
Call the trustly API with the given request.

@throws Trustly_DataException Upon failure to add all the communication
parameters to the data.

@throws Trustly_ConnectionException When failing to communicate with the
API.

@param Trustly_Data_Request $request Outgoing data request.
Call the trustly API with the given request .