com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Publishing Events

Description

Publish events revceived by the WSO2 EMM Android client to WSO2 DAS using this API.

Resource Path/
URL/mdm-android-agent/events/
HTTP MethodPOST
Request/Response Formatapplication/json
cURL command
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -d @'<JSON_PAYLOAD>' -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-android-agent/events/ 
  • For more information on how to generate the <EMM_API_TOKEN>, see Generating the EMM API Token.
  • Define the path to the JSON file, which includes the required properties to publish an event as the <JSON_PAYLOAD> value. For more information, see the Sample JSON Definition. 
  • By default, <EMM_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <EMM_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.

Example:

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer d869e4c177f17143748376d54633473" -k -d @'event.json' -v https://localhose:9443/mdm-android-agent/events/
 Sample output
> POST /mdm-android-agent/events/ HTTP/1.1
> Host: localhost:9443
> User-Agent: curl/7.43.0
> Accept: */*
> Authorization: Bearer 988f0b0688dce337cd64dfeb899f4cb1
> Content-Type: application/json
> Cache-Control: no-cache
> Content-Length: 154
< HTTP/1.1 201 Created
< Date: Sun, 01 May 2016 08:40:58 GMT
< Content-Type: application/json
< Content-Length: 51
< Server: WSO2 Carbon Server
{"responseCode":"Event is published successfully."}
Sample JSON Definition 
{  
   "deviceIdentifier":"353863072233137",
   "payload":"{\"packageName\":\"org.wso2.emm.agent\",\"state\":\"removed\"}",
   "type":"APPLICATION_STATE"
}
PropertyDefinition
deviceIdentifier

Defines the device ID. For more information, see Retrieving a Device ID.

payload

Defines the payload to publish the events to WSO2 DAS.

typeDefine the type of the events being published.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.