Interface Options

interface Options {
    baseUrl?: string;
    consumer_key?: string;
    consumer_secret?: string;
    returnPromises?: boolean;
    token?: string;
    token_secret?: string;
}

Properties

baseUrl?: string

(optional) The API url if different from the default.

consumer_key?: string

OAuth1 credential. Required for API key auth endpoints.

consumer_secret?: string

OAuth1 credential. Required for OAuth endpoints.

returnPromises?: boolean

Methods will return promises if no callback is provided.

token?: string

OAuth1 credential. Required for OAuth endpoints.

token_secret?: string

OAuth1 credential. Required for Oauth endpoints.