This repository has been archived by the owner on Mar 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Licensing system & API connection #43
Comments
/api/get_latest_version/multitable-pro(/beta) output in json:
Invalid input or not found simply returns the whole thing as null |
/download:
|
Keep getting 404 not found. |
@deMathias It's fixed. Happened because there are no published versions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
These should all send POST requests to their corresponding API url:
Response is in json array. Just call it, call json deserialize and roll use the output.
All responses look like this:
array(
'result' => array(),
'errors' => array(),
);
check if response contains errors before anything else (errors exists at all rather)
errors: array("error strings", "other error")
call Logger.Log() to display errors to user, or show em in the window
All relevant return data is contained in the "result" variable
/api/validate_license
Post params:
macaddr - mac address string
license_key - (should be 'TRIAL' for trial check, all caps)
request_product_group - should be 1 for MTP
Return
is_active - int (0 or 1) (basically true or false but DB outputs tinyint)
expires_at - time string (DateTime.Parse())
^ Only these return on trial check
for non trial it also adds:
'product_name' => $r->product_name,
'product_description' => $r->product_description,
'first_name' => $r->first_name,
'last_name' => $r->last_name,
'email' => $r->email,
'restrictions' => $restrictions, // described below
'license_status_message' => 'Active license',
restrictions - array ( - not all keys may exist, so check if they do first - they all return as string (probably)
UNLIMITED_COMPUTERS - bool
MAX_STAKE - int of max buyin (Table.BigBlind x 100)
BUILD_TYPE - enum("RELEASE", "INTERNAL", "BETA") (so string basically) - indicates optional access to non-release builds
)
The text was updated successfully, but these errors were encountered: