#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# YQLRequest Class

Defined in: `yql/js/yql.js:5`
Module: yql

Utility Class used under the hood my the YQL class

## Constructor

### `YQLRequest`

(

- `sql`
- `callback`
- `params`
- `opts`

)

Defined in `yql/js/yql.js:5`

#### Parameters:

- `sql` String

  The SQL statement to execute

- `callback` Function/Object

  The callback to execute after the query (Falls through to JSONP).

- `params` Object

  An object literal of extra parameters to pass along (optional).

- `opts` Object

  An object literal of configuration options (optional): proto (http|https), base (url)

- Index
- Methods
- Properties

## Item Index

### Methods

- _internal
- _send
- send

### Properties

- _callback
- _context
- _jsonp
- _opts
- _params
- BASE_URL static
- ENV static
- FORMAT static
- PROTO static

## Methods

### `_internal`

() private

Defined in `yql/js/yql.js:77`

Internal Callback Handler

### `_send`

(

- `url`
- `o`

)
private

Defined in `yql/js/yql.js:113`

Private method to send the request, overwritten in plugins

#### Parameters:

- `url` String

  The URL to request

- `o` Object

  The config object

### `send`

() YQLRequest chainable

Defined in `yql/js/yql.js:85`

The method that executes the YQL Request.

#### Returns:

YQLRequest:

## Properties

### `_callback`

Unknown private

Defined in `yql/js/yql.js:59`

Holder for the callback argument

### `_context`

Unknown private

Defined in `yql/js/yql.js:71`

The context to execute the callback in

### `_jsonp`

Unknown private

Defined in `yql/js/yql.js:47`

Reference to the JSONP instance used to make the queries

### `_opts`

Unknown private

Defined in `yql/js/yql.js:53`

Holder for the opts argument

### `_params`

Unknown private

Defined in `yql/js/yql.js:65`

Holder for the params argument

### `BASE_URL`

Unknown static

Defined in `yql/js/yql.js:137`

The base URL to query: query.yahooapis.com/v1/public/yql?

### `ENV`

Unknown static

Defined in `yql/js/yql.js:143`

The environment file to load: http://datatables.org/alltables.env

### `FORMAT`

Unknown static

Defined in `yql/js/yql.js:125`

Default format to use: json

### `PROTO`

Unknown static

Defined in `yql/js/yql.js:131`

Default protocol to use: http