API Endpoint accept JSON Post request to the URL:
{{siteurl}}/api/
the POST Body Content:
{
"service": "Test",
"username": "082070127@ibal",
/* Extra POST Fields */
}
- Import the SQL file.
- Edit SQL Connection info at /include/Config.php.
- Send Test POST Request using Postman to check if the PHP works without error.
- Create "Subscribe" endpoint which allow any thirdparty application send new subscriber to join the subscription system.
- Encrypt the user password with sha1 and md5 encryption methods.
- Limit the devices to 5 devices per each subscriber
- Create "Login" endpoint which allow any subscriber to login to his user account [emulate device login] with device limitation validation
- Create "TokenValidate" endpoint to validate user tokens.
https://github.com/ThingEngineer/PHP-MySQLi-Database-Class