public function setResponseFormat($format)
    {
        $format = strtolower($format);
        if (!in_array($format, array('php', 'json', 'jsonp'))) {
            throw new Exception("Expected a format of php, json or jsonp, got '$format'");
        } else {
            $this->responseFormat = $format;
        }
    }
public function setResponseFormat($format)
    {
        $format = strtolower($format);
        if (!in_array($format, array('php', 'json', 'jsonp'))) {
            throw new Exception("Expected a format of php, json or jsonp, got '$format'");
        } else {
            $this->responseFormat = $format;
        }
    }
public function setResponseFormat ( $ format ) { $ format = strtolower ( $ format ) ; if ( ! in_array ( $ format , array ( 'php' , 'json' , 'jsonp' ) ) ) { throw new Exception ( "Expected a format of php, json or jsonp, got '$format'" ) ; } else { $ this -> responseFormat = $ format ; } }
Set the API response format
@param string $format One of php, json or jsonp
@return void
Set the API response format