PyAuthGG
  • PyAuthGG
  • Changelogs
  • Getting Started
  • Administration
    • Administration()
    • Users
      • FetchUser()
      • FetchUsedLicenses()
      • FetchUserCount()
      • FetchUsers()
      • DeleteUser()
      • ChangeVariable()
      • ChangeRank()
      • ChangePassword()
    • Licenses
      • FetchLicense()
      • FetchLicenseCount()
      • DeleteLicense()
      • UnuseLicense()
      • UseLicense()
      • GenerateLicense()
    • HWID
      • FetchHWID()
      • ResetHWID()
      • SetHWID()
  • Application
    • Application()
    • GetHWID()
    • Info()
    • Login()
    • Register()
    • Extend()
    • ForgotPassword()
    • ChangePassword()
    • Log()
  • GitHub Repository
  • PyPI Package
Powered by GitBook
On this page
  • Success Response
  • Error Response

Was this helpful?

  1. Administration
  2. Licenses

GenerateLicense()

The GenerateLicense() function can be used for generating licenses.

PreviousUseLicense()NextHWID

Last updated 4 years ago

Was this helpful?

Arguments

Type

Required

Default

Amount

Integer

True

Days

Integer

True

Level

Integer

True

Format

Integer

True

Prefix

String

False

Length

Integer

False

Make sure to pass a prefix if needed.

import PyAuthGG

Admin = PyAuthGG.Administration("ADMIN API KEY")

Admin.GenerateLicense(2, 31, 1, 4, "XFUEY", 10)

Success Response

{
   "0":"XFUEY-D7A7A2HURO",
   "1":"XFUEY-IDBYZHLKPM"
}

Error Response

The following error is returned when a prefix format does not get a prefix passed.

{
   "status":"failed",
   "info":"No prefix"
}
Available License Formats