• Entries larger than 250,000 characters will be chunked. Be carefull when using together with the REST API.

    Objects and arrays will be automatically stringified to be stored in AppsDb

    Example

    import { Showpad } from '@showpad/experience-app-sdk'
    import { v4 as uuidv4 } from 'uuid'

    // Use Showpad.getShowpadOAuthApiInteractive() if you want to prompt the password instead of passing it.
    const apiConfig = await Showpad.getShowpadOAuthApi(
    '<clientId>',
    '<clientSecret>',
    '<password>',
    )

    const contact: Contact = {
    name: 'John',
    surname: 'Doe'
    }

    const appsDbEntries = await Showpad.setStoreEntryValue('Contacts', uuidv4(), contact, apiConfig.accessToken)

    Parameters

    • store: string
    • entryId: string
    • entryValue: JsonValue

      Limited to 10Mb (10,000,000 characters)

    • Optional authentication: string | AxiosInstance

      AxiosInstance or Access token with the AppsDb OAuth Scope. (In future versions only an AxiosInstance will be allowed.)

      This AxiosInstance should be retrieved with getShowpadOAuthInstance or getShowpadOAuthInstanceInteractive.

      This parameter can be omitted if you know the user executing the function is an administrator.

    Returns Promise<JsonValue>

Generated using TypeDoc