MangoPay/ApiResponses.php
public function Get($idempotencyKey)
    {
        $response = $this->GetObject('responses_get', $idempotencyKey, 'MangoPay\Response');
        $className = $this->GetObjectForIdempotencyUrl($response->RequestURL);
        if (is_null($className) || empty($className) || is_null($response->Resource) || empty($response->Resource))
            return $response;
        
        $response->Resource = $this->CastResponseToEntity($response->Resource, $className);
        return $response;
    }
public function Get($idempotencyKey)
    {
        $response = $this->GetObject('responses_get', $idempotencyKey, 'MangoPay\Response');
        $className = $this->GetObjectForIdempotencyUrl($response->RequestURL);
        if (is_null($className) || empty($className) || is_null($response->Resource) || empty($response->Resource))
            return $response;
        
        $response->Resource = $this->CastResponseToEntity($response->Resource, $className);
        return $response;
    }
public function Get ( $ idempotencyKey ) { $ response = $ this -> GetObject ( 'responses_get' , $ idempotencyKey , 'MangoPay\Response' ) ; $ className = $ this -> GetObjectForIdempotencyUrl ( $ response -> RequestURL ) ; if ( is_null ( $ className ) || empty ( $ className ) || is_null ( $ response -> Resource ) || empty ( $ response -> Resource ) ) return $ response ; $ response -> Resource = $ this -> CastResponseToEntity ( $ response -> Resource , $ className ) ; return $ response ; }
Get response from previous call by idempotency key
@param string $idempotencyKey Idempotency key
@return \MangoPay\Response Entity of Response object
Get response from previous call by idempotency key