From 30b84ed96f8fc03fc5a73bbe97a86d76899ab8cc Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 14 Jun 2019 17:56:41 -0700 Subject: binding: bluetooth-map: add message access support Add support for retrieving messages, and listing handles of messages located in folders. SPEC-2512 Change-Id: Ia345488b51f5cac1e1c2fd508305d7ffda794251 Signed-off-by: Matt Ranostay --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3d4d92b..d51e00e 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,16 @@ to enable message notifications from SMS/email/etc. ### Important Notes -Message composition isn't available on iOS devices due to respective security polices, and in -turn isn't supported in Apple's implementation of the (MAP) Message Access Profile. +Message composition and message access isn't available on iOS devices due to respective security +polices, and in turn isn't supported in Apple's implementation of the (MAP) Message Access Profile. ## Verbs | Name | Description | JSON Response | |-------------------|------------------------------------------|-------------------------------------------| | compose | send message | see **compose verb** section | +| message | display message | see **message verb** section | +| list_messages | list messages in folder | see **list_messages** section | | subscribe | subscribe to MAP service events | *Request:* {"value": "notification"} | | unsubscribe | unsubscribe to MAP service events | *Request:* {"value": "notification"} | @@ -36,6 +38,67 @@ Send a message (if supported) via MAP profile: } +### message verb + +Request a message via the respective handle: + +
+{
+    "handle": "message288230376151711769"
+}
+
+ +Response: + +
+{
+    "response": {
+        "status": "UNREAD",
+        "type": "SMS_GSM",
+        "folder": "telecom/msg/INBOX",
+        "sender": {
+            "tel": "+13605551212"
+        },
+    "message": "Meet at Victor 23 at 6p?"
+},
+
+
+ +### list_messages verb + +Request a folder listing of messages: + +
+{
+    "folder":"INBOX"
+}
+
+ +Response which the message handle as the key and includes its properties: + +
+{
+    "response": {
+        "message288230376151711769": {
+            "folder": "/telecom/msg/INBOX",
+            "subject": "Meet at Victor 23 at 6p?",
+            "timestamp": "20190614T093341",
+            "sender": "",
+            "senderaddress": "+13605551212",
+            "recipient": "",
+            "recipientaddress": "",
+            "type": "sms-gsm",
+            "size": 24,
+            "status": "complete",
+            "priority": false,
+            "read": false,
+            "sent": false,
+            "protected": false
+        },
+   ...
+},
+
+ ### notification event
-- 
cgit 1.2.3-korg