Sha256: f833428c3ee54fe190f60cc49fa540cb039075b05e3512508806a6c9ee5a5432
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 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.OAuthTokenRefreshRequest(); data.refreshToken = "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"; const result = api.oauthTokenRefresh(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/OauthTokenRefresh.js |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/OauthTokenRefresh.ts |