UNPKG

@dolbyio/dolbyio-rest-apis-client

Version:
38 lines (37 loc) 1.06 kB
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>;