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');
const SGB_CODE = 'YOUR_CODE'
const SGB_SECRET = 'YOUR_SECRET'
const SGB_REGION = 'YOUR_REGION'
WebBased(SGB_CODE, SGB_SECRET).then(response => {
console.log(response)
})
WebBasedRegion(SGB_CODE, SGB_SECRET, SGB_REGION).then(response => {
console.log(response)
})
CLIBased(SGB_CODE, SGB_SECRET).then(response => {
console.log(response)
})
console.log(await CLIBased(SGB_CODE, SGB_SECRET))
Results
true : valid
false : invalid