src/PDFfiller.php
public function apiCall($method, $url, $options = [])
    {
        if($this->accessToken === null) {
            throw new TokenMissingException();
        }

        $options['headers']['User-Agent'] = self::USER_AGENT . '/' . self::VERSION;
        $request = $this->getAuthenticatedRequest($method, $url, $this->getAccessToken()->getToken(), $options);
        $request = $this->applyOptions($request, $options);

        return $this->getResponse($request);
    }
public function apiCall($method, $url, $options = [])
    {
        if($this->accessToken === null) {
            throw new TokenMissingException();
        }

        $options['headers']['User-Agent'] = self::USER_AGENT . '/' . self::VERSION;
        $request = $this->getAuthenticatedRequest($method, $url, $this->getAccessToken()->getToken(), $options);
        $request = $this->applyOptions($request, $options);

        return $this->getResponse($request);
    }
public function apiCall ( $ method , $ url , $ options = [ ] ) { if ( $ this -> accessToken === null ) { throw new TokenMissingException ( ) ; } $ options [ 'headers' ] [ 'User-Agent' ] = self :: USER_AGENT . '/' . self :: VERSION ; $ request = $ this -> getAuthenticatedRequest ( $ method , $ url , $ this -> getAccessToken ( ) -> getToken ( ) , $ options ) ; $ request = $ this -> applyOptions ( $ request , $ options ) ; return $ this -> getResponse ( $ request ) ; }
Performs a request and returns the response

@param $method
@param $url
@param array $options
@return array
@throws TokenMissingException
Performs a request and returns the response