🔐
DevByBit
  • 🔐Blackout License Software
    • 👍Installation
      • 💽Dependencies
      • 📮Check Versions
      • 🦰Setting up the bot
      • 💸Setting up the tebex api
      • 🎹Setting up the tinymce
    • ☑️Required Dependencies
    • 💉API Integration
      • Java Integration
      • Javascript Integration
      • PHP Integration
      • Python Integration
      • Lua Integration
      • API Actions Create
        • PHP Integration
        • Java Integration
        • Lua Integration
        • Python Integration
    • 🪝Request
      • 🚩Low
      • 🏳️Normal
      • 🏴High
    • 🔱Permissions
      • 📑List
    • 🪧Version History
    • 🔗Links
      • Demo
      • Information
  • 📚Mongo Manager
  • 🏪Businesses Software's
    • 🏬Mia Account
      • 🔗Links
        • Demo
        • Information
  • 🔑License Software's
    • 🆓Soroly
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏Solary
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏PrimeLicense
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • Ⓜ️Mito
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
        • 🌏Users
        • 📐Moderator
        • 🔱Admin
        • 👑Owner
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
  • 🧊Minecraft Web
    • 🖥️Versal
    • 🚫Atomic
      • 🪧Version History
        • 1.0-beta
  • 👮Support
    • Discord Support
Powered by GitBook
On this page
  1. Blackout License Software
  2. API Integration

Lua Integration

Please note these are examples. It is recommended that you make one that is more complex and adjustable to your needs.

Example Lua

Copy

local http = require("socket.http")
local json = require("cjson")

function checkLicense(key, software, version)
    local secret = 'PUT_YOUR_SECRET_KEY'
    local type = 'license'
    local domain = "<YOUR_DOMAIN>"
    local url = string.format("https://%s/api.php?secret=%s&type=%s&key=%s&product=%s&version=%s",
        domain, secret, type, key, software, version)

    local response, status = http.request(url)

    if status ~= 200 then
        print("Error...")
        os.exit()
    end

    local data = json.decode(response)

    if data.valid then
        print("Success!")
    else
        print("Incorrect.")
    end
end

-- Use example
checkLicense("your_key", "your_software", "your_version")
PreviousPython IntegrationNextAPI Actions Create

Last updated 11 months ago

🔐
💉