Sha256: 09007346e6a50f557903e81cc19f5feac46d3c4ad5b0111d24119861b3891ef4

Contents?: true

Size: 691 Bytes

Versions: 2

Compression:

Stored size: 691 Bytes

Contents

import * as HelloSignSDK from "hellosign-sdk";

const api = new HelloSignSDK.OAuthApi();

// Configure HTTP basic authorization: api_key
api.username = "YOUR_API_KEY";

// or, configure Bearer (JWT) authorization: oauth2
// api.accessToken = "YOUR_ACCESS_TOKEN";

const data = new HelloSignSDK.OAuthTokenGenerateRequest();
data.state = "900e06e2";
data.code = "1b0d28d90c86c141";
data.clientId = "cc91c61d00f8bb2ece1428035716b";
data.clientSecret = "1d14434088507ffa390e6f5528465";

const result = api.oauthTokenGenerate(data);
result.then(response => {
  console.log(response.body);
}).catch(error => {
  console.log("Exception when calling HelloSign API:");
  console.log(error.body);
});

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
hellosign-ruby-sdk-6.0.0.pre.beta oas/examples/OauthTokenGenerate.js
hellosign-ruby-sdk-6.0.0.pre.beta oas/examples/OauthTokenGenerate.ts