Sha256: 5a082778fc57f0512c71fba884b93282e9ef8f462b9706e58eb3240f8ad64498

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 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 whiteLabelingOptions: HelloSignSDK.SubWhiteLabelingOptions = {
  primaryButtonColor: "#00b3e6",
  primaryButtonTextColor: "#ffffff",
};

const data: HelloSignSDK.ApiAppUpdateRequest = {
  name: "New Name",
  callbackUrl: "http://example.com/hellosign",
  customLogoFile: "./CustomLogoFile.png",
  whiteLabelingOptions,
};

const clientId = "0dd3b823a682527788c4e40cb7b6f7e9";

const result = api.apiAppUpdate(clientId, 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/ApiAppUpdate.ts