Sha256: bfb644629da390dfa55902c5442a06da4e6b6da1511e33221d09eeba5f602f78

Contents?: true

Size: 1009 Bytes

Versions: 1

Compression:

Stored size: 1009 Bytes

Contents

import * as HelloSignSDK from "hellosign-sdk";

const api = new HelloSignSDK.ApiAppApi();

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

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

const oauth: HelloSignSDK.SubOAuth = {
  callbackUrl: "https://example.com/oauth",
  scopes: [
    HelloSignSDK.SubOAuth.ScopesEnum.BasicAccountInfo,
    HelloSignSDK.SubOAuth.ScopesEnum.RequestSignature,
  ],
};

const whiteLabelingOptions: HelloSignSDK.SubWhiteLabelingOptions = {
  primaryButtonColor: "#00b3e6",
  primaryButtonTextColor: "#ffffff",
};

const data: HelloSignSDK.ApiAppCreateRequest = {
  name: "My Production App",
  domains: ["example.com"],
  customLogoFile: "./CustomLogoFile.png",
  oauth,
  whiteLabelingOptions,
};

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

Version data entries

1 entries across 1 versions & 1 rubygems

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