Skip to content

@collectivtech/alana-sdk-js


@collectivtech/alana-sdk-js / index / createServerApi

Function: createServerApi() ​

createServerApi(options, secretKey): AlanaServerApi

Defined in: src/index.ts:65

Create a new entry to the ALANA Platform API using your API secret key and username.

Parameters ​

options ​

SdkOptions

The options to use when creating this SDK instance. These include the API key and username, the mode (development or production), and further customization for specialized use cases.

secretKey ​

string

Your API secret key. This should only be used outside a browser environment, except that in-browser use is allowed in dev and sandbox modes for testing only.

Returns ​

AlanaServerApi

A new server ALANA SDK instance.

ALANA™, ALANA Platform™, ALANA Guide™, and ALANA Partner™ are trademarks of Collectiv Technologies Inc.