Socket
Socket
Sign inDemoInstall

sgbteam-api

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sgbteam-api

SGB Team Official API to Check SGB Code Validation


Version published
Maintainers
1
Created

Readme

Source

SGBTeam-API

SGB Team Official API to Check SGB Code Validation

PHP Version : https://github.com/dandyraka/SGB-Team-API

Install

npm install sgbteam-api

Example

const { WebBased, WebBasedRegion, CLIBased } = require('sgbteam-api');

// Initializing a variable
const SGB_CODE = 'YOUR_CODE'
const SGB_SECRET = 'YOUR_SECRET'
const SGB_REGION = 'YOUR_REGION'

/* Web Based */
WebBased(SGB_CODE, SGB_SECRET).then(response => {
  console.log(response) // true or false
})

/* Web Based (Region) */
// Maybe you can use it for absent regional members
WebBasedRegion(SGB_CODE, SGB_SECRET, SGB_REGION).then(response => {
  console.log(response) // true or false
})

/* CLI Based */
CLIBased(SGB_CODE, SGB_SECRET).then(response => {
  console.log(response) // true or false
})

// or use await
console.log(await CLIBased(SGB_CODE, SGB_SECRET))

Results

true  : valid
false : invalid

Keywords

FAQs

Last updated on 26 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc