Skip to content

Type Friendly Wrapper for the Metro Reviews API - NOT READY FOR PROD

Notifications You must be signed in to change notification settings

MetroReviews/node-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Metro Reviews SDK

Type Friendly Wrapper for the Metro Reviews API!

Version NPM Version License Type CodeQL njsscan sarif


Installation

npm install metro-sdk (coming soon)

Initialize the SDK

const MetroAPI = require(`metro-sdk`)
const Metro = new MetroAPI.MetroClient('Your Secret Key')

Update List

await Metro.updateList({
  name: listInfo.name,
  description: listInfo.description,
  domain: listInfo.domain,
  claim_bot_api: listInfo.claim_bot_api,
  unclaim_bot_api: listInfo.unclaim_bot_api,
  approve_bot_api: listInfo.approve_bot_api,
  deny_bot_api: listInfo.deny_bot_api,
  reset_secret_key: false,
  icon: listInfo.icon
})

About

Type Friendly Wrapper for the Metro Reviews API - NOT READY FOR PROD

Resources

Stars

Watchers

Forks

Packages

No packages published