public function get()
    {
        $result = null;
        switch ($this->format) {
            case 'nvp':
                $result = http_build_query($this->data);
                break;

            case 'json':
            default:
                $result = json_encode($this->data, JSON_PRETTY_PRINT);
                break;
        }

        return $result;
    }
public function get()
    {
        $result = null;
        switch ($this->format) {
            case 'nvp':
                $result = http_build_query($this->data);
                break;

            case 'json':
            default:
                $result = json_encode($this->data, JSON_PRETTY_PRINT);
                break;
        }

        return $result;
    }
public function get ( ) { $ result = null ; switch ( $ this -> format ) { case 'nvp' : $ result = http_build_query ( $ this -> data ) ; break ; case 'json' : default : $ result = json_encode ( $ this -> data , JSON_PRETTY_PRINT ) ; break ; } return $ result ; }
Get API response.

@param void

@return string
Get API response .