Skip to content

knagyorg/ttlock-api

 
 

Repository files navigation

TTLock API

Installation

  • Run npm install after cloning the repository
  • Run npm run build to build this package
  • Install the package from your another project, run npm i <path-to-this-package-folder>

Usage

  • Create Client
import { createClient } from 'ttlock-api'

const client = createClient({
  baseUrl: '',
  clientId: '',
  clientSecret: ''
})
  • Use The APIs, one for example
client.lock.init({
  accessToken: '',
  date: 0,
  lockData: ''
}).then(response => {

  // Do something after getting the response
  
})
  • You can also import the types when you need to
import { UserType } from 'ttlock-api'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.8%
  • TypeScript 24.7%
  • JavaScript 8.5%
  • CSS 3.0%