private function createRequest($method, $resource, array $data = [])
    {
        if (!empty($data)) {
            $data['signature'] = $this->apiSignature;
        }

        return $this->requestFactory->createRequest($method, $resource, [], $this->encode($data));
    }
private function createRequest($method, $resource, array $data = [])
    {
        if (!empty($data)) {
            $data['signature'] = $this->apiSignature;
        }

        return $this->requestFactory->createRequest($method, $resource, [], $this->encode($data));
    }
private function createRequest ( $ method , $ resource , array $ data = [ ] ) { if ( ! empty ( $ data ) ) { $ data [ 'signature' ] = $ this -> apiSignature ; } return $ this -> requestFactory -> createRequest ( $ method , $ resource , [ ] , $ this -> encode ( $ data ) ) ; }
Uses a PSR-7 compliant request factory to build up the expected request.

@param string $method   Http method (POST, GET)
@param string $resource Uri path sufix
@param array  $data     Request's body data to send

@return RequestInterface
Uses a PSR - 7 compliant request factory to build up the expected request .