New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ttlock-api

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttlock-api

Unofficial TTLock API Wrapper

latest
Source
npmnpm
Version
0.0.15
Version published
Weekly downloads
24
-83.56%
Maintainers
5
Weekly downloads
 
Created
Source

TTLock API

Unofficial TTLock API Wrapper. See more at TTLock

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'

Keywords

TTLock

FAQs

Package last updated on 17 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts