UNPKG

dce-icommons

Version:

The Harvard DCE wrapper for the iCommons API.

26 lines (25 loc) 649 B
import path from 'path'; /** * Send an API request to Zoom * @author Gabe Abrams * @param opts object containing all arguments * @param opts.path the url path to hit * @param opts.token the iCommons token to use * @param [opts.method=GET] the https method to use * @param [opts.params] the request params to include */ declare const visitICommonsEndpoint: (opts: { path: string; token: string; method?: ('GET' | 'POST' | 'PUT' | 'DELETE'); params?: { [x: string]: any; }; }) => Promise<{ body: any; status: number; headers: { [x: string]: any; }; }>; export default visitICommonsEndpoint;