import * as HelloSignSDK from "hellosign-sdk"; const api = new HelloSignSDK.SignatureRequestApi(); // Configure HTTP basic authorization: api_key api.username = "YOUR_API_KEY"; // or, configure Bearer (JWT) authorization: oauth2 // $config->setAccessToken("YOUR_ACCESS_TOKEN"); const signatureRequestId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; const result = api.signatureRequestGet(signatureRequestId); result.then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling HelloSign API:"); console.log(error.body); });