Constructor
new APIRequestManager(config, eventBus)
Parameters:
| Name | Type | Description | 
|---|---|---|
config | 
            
            Config | SDK configuration object instance. | 
eventBus | 
            
            EventEmitter | The event bus for SDK events | 
- Source:
 
Methods
makeRequest(options) → {Promise.<Response>}
    Make a request to the API, and get the response via callback.
    Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | The request options | 
- Source:
 
Returns:
    A promise resolving to the response object
- Type
 - Promise.<Response>
 
makeRequest(options) → {Promise.<Response>}
    Make a request to the API, and get the response via callback.
    Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | The request options | 
- Source:
 
Returns:
    A promise resolving to the response object
- Type
 - Promise.<Response>
 
makeStreamingRequest(options) → {Stream.Readable}
    Make a request to the API, and return a read stream for the response.
    Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | The request options | 
- Source:
 
Returns:
    The response stream
- Type
 - Stream.Readable
 
makeStreamingRequest(options) → {Stream.Readable}
    Make a request to the API, and return a read stream for the response.
    Parameters:
| Name | Type | Description | 
|---|---|---|
options | 
            
            Object | The request options | 
- Source:
 
Returns:
    The response stream
- Type
 - Stream.Readable