Norse Polytheistic Mythology

    @vendia/share-sdk

    2.3.0 • Public • Published

    Vendia Share SDK

    Vendia's javascript SDK.

    Install

    npm install @vendia/share-sdk
    

    Usage

    import VendiaShareSDK from '@vendia/share-sdk'
    import Auth from '@aws-amplify/auth'
    
    /* Get current AWS creds */
    async function getCredentials() {
      return new Promise((resolve) => {
        Auth.currentCredentials()
          .then((creds) => resolve(creds))
          .catch((err) => resolve({}))
      })
    }
    
    
    const client = new VendiaShareSDK({
      baseURL: config.shareApi,
      getCredentials: Auth.currentCredentials,
      onError: async (error) => {
        // API 403 error
      }
    })
    
    
    async function usage() {
      const unis = await client.listUnis()
      console.log('unis', unis)
    }

    Keywords

    none

    Install

    npm i @vendia/share-sdk

    DownloadsWeekly Downloads

    81

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    186 kB

    Total Files

    10

    Last publish

    Collaborators

    • silversteez
    • davidwells
    • brettstack
    • vendibot