@dolbyio/dolbyio-rest-apis-client
Version:
Node.JS wrapper for the Dolby.io REST APIs
38 lines (37 loc) • 1.06 kB
TypeScript
import * as httpHelpers from '../../internal/httpHelpers';
import { JwtToken } from '../types/jwtToken';
export interface AuthRequestOptions extends httpHelpers.RequestOptions {
accessToken: JwtToken;
}
/**
* Sends a GET request.
*
* @param options Request options.
*
* @returns A JSON payload object through a {@link Promise}.
*/
export declare const sendGet: (options: AuthRequestOptions) => Promise<any>;
/**
* Sends a POST request.
*
* @param options Request options.
*
* @returns A JSON payload object through a {@link Promise}.
*/
export declare const sendPost: (options: AuthRequestOptions) => Promise<any>;
/**
* Sends a PUT request.
*
* @param options Request options.
*
* @returns A JSON payload object through a {@link Promise}.
*/
export declare const sendPut: (options: AuthRequestOptions) => Promise<any>;
/**
* Sends a DELETE request.
*
* @param options Request options.
*
* @returns A JSON payload object through a {@link Promise}.
*/
export declare const sendDelete: (options: AuthRequestOptions) => Promise<any>;