Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         {name: "emailService",      kind: "PalmService",
  2.  
  3.                                     service: "palm://com.palm.applicationManager/",
  4.  
  5.                                     method: "open",
  6.  
  7.         },
  8.  
  9.         {name: "messagingService",  kind: "PalmService",
  10.  
  11.                                     service: "palm://com.palm.applicationManager/",
  12.  
  13.                                     method: "open",
  14.  
  15.         }  
  16.  
  17.        
  18.  
  19.  
  20.  
  21.     ],
  22.  
  23.     sendEmail : function(inSender, inResponse) {
  24.  
  25.         var params =  {
  26.  
  27.             "summary":"I found this on Reddit with Red It for webOS. Check it out!",
  28.  
  29.             "text":"Title: '"+this.storyStruct.title+"' URL: " +this.storyStruct.url+""
  30.  
  31.         };
  32.  
  33.         this.$.emailService.call({"id": "com.palm.app.email", "params":params});
  34.  
  35.     },
  36.  
  37.     sendMessage : function(inSender, inResponse) {
  38.  
  39.  
  40.  
  41.     var  params =  {
  42.  
  43.         "composeRecipients" :
  44.  
  45.         {
  46.  
  47.             "address"     : "9193895334",
  48.  
  49.            
  50.  
  51.          },
  52.  
  53.         "messageText"     : "Title: '"+this.storyStruct.title+"' URL: " +this.storyStruct.url+""
  54.  
  55.     };  
  56.  
  57.         this.$.messagingService.call({"id": "com.palm.app.messaging", "params":params});
  58.  
  59.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement