API Usage

User

Login

Reqeust

In order to request a login send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/action.php?action=login
  • POST [username] - Users username
  • POST [hwid] - Users HWID
  • POST [password] - Raw text password of the user
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

The respone is returned as a JSON with the information:

  • [name] - Users username
  • [hwid] - Users HWID(if sent)
  • [joined] - Users registeration date on your APP
  • [has_licence] - Has redeemed a licence key before(can be expired or invalid!)
  • [licence_status] - Status of their licence(active, expired, banned, none)
  • [total_pings] - How many times they have pinged your APP
  • [app_version] - Your APP's version(if set)
Register

Reqeust

In order to request a register send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/action.php?action=register
  • POST [username] - Users username
  • POST [email] - Users email
  • POST [hwid] - Users HWID
  • POST [password] - Raw text password of the user
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

The respone is returned as a JSON with the information:

  • [status] - Status of the register
Connect
Must be done after the register process once

Reqeust

In order to request a connect send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/action.php?action=connect
  • POST [username] - Users username
  • POST [hwid] - Users HWID
  • POST [password] - Raw text password of the user
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

The respone is returned as a JSON with the information:

  • [status] - Status of the connection
Download

Reqeust

In order to request a connect send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/action.php?action=download
  • POST [username] - Users username
  • POST [hwid] - Users HWID
  • POST [password] - Raw text password of the user
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

Binary

Developer

Get App Data

Reqeust

In order to request information send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=get_app_data
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

The respone is returned as a JSON with the information:

  • [appname] - Name of your app
  • [secret] - Secret of your app
  • [public] - Public key of your app
  • [online] - Online status (0/1)
  • [version] - Version of your app(if set)
Get Licences

Reqeust

In order to request information send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=get_licences
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

The respone is returned as a JSON with the information:

  • [id] - ID of the licence
  • [licence] - Licence key
  • [usedby] - Username of the licence user
  • [isused] - Usage status (0/1)
  • [expire_time] - Expiry date and time
  • [created] - Date and time of creation
  • [access] - Access level
  • [redeemed] - Redemption status
Delete User

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=delete_user
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)
  • POST [user_id] - Users ID for deletion

Response

No Respone

Delete Licence

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=delete_licence
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)
  • POST [licence_key] - Licence key

Response

No Respone

Change Online Status

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=change_status
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)
  • POST [status] - 0/1

Response

No Respone

Change Version

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=change_version
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)
  • POST [version] - version

Response

No Respone

Renew Secret

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=renew_secret
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)

Response

No Respone

Create Licences

Reqeust

In order to request changes send a POST request with the following params:

  • Endpoint: http://opensysec.com/api/admin.php?action=create_licences
  • POST [developer_username] - Your developer username
  • POST [develoer_password] - Your developer password
  • POST [app_secret] - Your APP's secret(keep this safe and private)
  • POST [amount] - Amount of keys (no more then 500)
  • POST [access] - Access level (0-9)
  • POST [expire_date] - Expire date (datetime format YYYY-MM-DD HH:MM:SS)

Response

Created Licence Keys