Install/Uninstall Notifications
Install and uninstall notifications are essentially POST requests from Nexusguard informing app developers that their apps have been installed, or uninstalled, by users. App developers are recommended to provide a HTTP/S URL that handles these requests.
Install or uninstall notification request contains a JSON object as its body. The following is an example:
{
"signature": "44a154d02993d3bceca934b419bf94ac",
"expiration_time": 1537341749338,
"type": 2,
"customer_id": "0840a6fb98445968",
"action_time": 1537341449320
}
signature
: signature is the MD5 value of a string used to verify the validity of the POST request. The string uses the following format:app_id:app_secret:expiration_time
.app_id
andapp_secret
can be found under Developer Config.expiration_time
: expiration time of the request, in UNIX time format.type
: type of the action.1
means installation while2
means uninstallation.customer_id
: ID of the customer who performed the action.action_time
: time of the action, in UNIX time format.
The provided URL should at least be able to validate the request and return a single code to acknowledge that the request is received. The following is an example:
{
"code": 0
}
code
: returned code to indicate if the notification was successfully received.0
indicates the notification was received and anything else would indicate otherwise.