src/Request.php
protected function getBinaryArgs()
    {
        $bArgs = array();
        foreach ($this->options[0] as $k => $v) {
            if ($k != 'file') {
                $bArgs[$k] = $v;
            }
        }

        if (!isset($bArgs['key'])) {
            $bArgs['key'] = $this->apiKey;
        }

        $bArgs['file'] = curl_file_create($this->options[0]['file']);

        return $bArgs;
    }
protected function getBinaryArgs()
    {
        $bArgs = array();
        foreach ($this->options[0] as $k => $v) {
            if ($k != 'file') {
                $bArgs[$k] = $v;
            }
        }

        if (!isset($bArgs['key'])) {
            $bArgs['key'] = $this->apiKey;
        }

        $bArgs['file'] = curl_file_create($this->options[0]['file']);

        return $bArgs;
    }
protected function getBinaryArgs ( ) { $ bArgs = array ( ) ; foreach ( $ this -> options [ 0 ] as $ k => $ v ) { if ( $ k != 'file' ) { $ bArgs [ $ k ] = $ v ; } } if ( ! isset ( $ bArgs [ 'key' ] ) ) { $ bArgs [ 'key' ] = $ this -> apiKey ; } $ bArgs [ 'file' ] = curl_file_create ( $ this -> options [ 0 ] [ 'file' ] ) ; return $ bArgs ; }
Returns the binary arguments for the request
Returns the binary arguments for the request