SA World SDK Documentation
  • 🛠 ENVIRONMENT SETUP
    • Overview
    • Getting Started
    • Sign Up for SAW SDK
    • Integration Steps
      • Step 1 - Install packages
      • Step 2 - Request credentials
      • Step 3 - Environments
      • Summary
    • SAW Sample Package
  • 🖥 SDK Integration Guides
    • Getting Started
    • Initialization
    • Authentication
    • Type Definition
    • User Data
      • getUser()
      • Account Data
        • getAccount()
        • getSub()
        • getEmail()
        • getName()
        • getUsername()
        • getGivenName()
        • getFamilyName()
      • Active Citizen Data
        • getCitizen()
        • getCitizenId()
        • getCitizenName()
        • getCitizenCode()
        • getCitizenWallet()
        • getCitizenLevel()
        • getCitizenAvatar()
      • Balance Data
        • getAP()
      • Saved Game Data
        • setGameData(...args)
        • getGameData()
      • Quest Data
        • getProcess()
        • claim(...args)
      • Friend Data
        • getFriendList()
        • sendFriendInvitation(...args)
        • responseFriendInvitation(...args)
        • getFriendInvitationList()
        • inviteGame(...args)
    • Game Play
      • Match Data
        • startMatch()
        • completeMatch(..args)
        • getMatchHistoryById(...args)
        • getAllMatchHistory(...args)
    • Quest
      • getList()
    • Achievement
      • getList()
  • 📌 Links
    • Report an Issue
    • Telegram Community Channel
    • Twitter
    • Discord
    • Facebook
Powered by GitBook
On this page
  1. 🛠 ENVIRONMENT SETUP
  2. Integration Steps

Step 1 - Install packages

Dependencies Installation:

  1. NPM package repository. The easiest way is to install SDK with NPM.

  2. Using CDN direct link. If your project is not supported by NPM, then you can use the CDN link to install SDK directly into your html file.

Steps:

  1. Install the package with the following line:

npm install @onechaintech/gamesdk

Using one of the following CDN service repositories:

  1. unpkg

<script src="https://unpkg.com/@onechaintech/gamesdk@latest/index.js"></script>
PreviousIntegration StepsNextStep 2 - Request credentials

Last updated 1 year ago

Page cover image