Skip to content

OpenURL

Carol Trese edited this page Oct 18, 2016 · 5 revisions

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

This service is available on the iOS, MacOS, and Electron for Windows platforms.

Method: POST

URL: http://pmapi/openurl

Input: JSON dictionary

Dictionary must contain element: url

Output: Standard HTTP status codes only. No data returned.


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"

}