Skip to content

OpenURL

Andy Johns edited this page Feb 22, 2017 · 5 revisions

####Description: Opens URL on device external to app

This service is available on the iOS, MacOS, Android, and Java platforms as an optional service.

Method: POST

URL: http://pmapi/openurl

Input: JSON dictionary

Dictionary must contain element: url

Output: No data returned. Status code 200 if successful. Status code 500 if the provided URL cannot be opened by any process/app on the device.


Example Input JSONs

Open mail app, and start new message:

{

  "url": "mailto://[email protected]?Subject=Hello%20again"

}

Initiate a phone call:

{

  "url": "tel:1-800-555-1212"

}

Open Facebook:

{

  "url": "fb://feed"

}

Open Page in Safari:

{

  "url": "https://www.google.com"

}