🔐
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

Python Integration

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

Example Python

Copy

import requests
import json

def check_license(key, software, version):
    secret = 'PUT_YOUR_SECRET_KEY'
    type_ = 'license'
    url = f"https://<YOUR_DOMAIN>/api.php?secret={secret}&type={type_}&key={key}&product={software}&version={version}"
    
    try:
        response = requests.get(url)
        response.raise_for_status()  # Raise an exception for HTTP errors (4xx or 5xx)

        data = response.json()
        
        if data['valid']:
            print("Success!")
        else:
            print("Incorrect.")
    except requests.exceptions.RequestException as e:
        print("Error:", e)

# Example usage
check_license('LICENSE_KEY', 'PRODUCT_NAME', 'VERSION_NUMBER')
PreviousPHP IntegrationNextLua Integration

Last updated 1 year ago

🔐
💉