Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:codesamples:batch [23/05/2019 13:08]
chdi
en:sidebar:remoteapi:codesamples:batch [23/05/2019 13:13]
chdi [Executing several commands at once]
Line 51: Line 51:
 </​code>​ </​code>​
  
-As we can see from the response, two users are available and their IDs are 648548 and 656124. Let's send them online messages using one request [[../​apiref/​core/​batch|core/​batch]]. To send an online messages, use the command **user/​update_user_notification**. Its detailed description is given in the chapter [[../​apiref/​user/​update_user_notification]].+As we can see from the response, two users are available and their IDs are 648548 and 656124. Let's send them online messages using one request [[../​apiref/​core/​batch|core/​batch]]. To send an online messages, use the command **user/​update_user_notification**. ​We will use different styles for text - parameter "​d"​. 
 +Its detailed description is given in the chapter [[../​apiref/​user/​update_user_notification]].
  
 <​code>​ <​code>​
Line 87: Line 88:
         "​id":​ 1,         "​id":​ 1,
         "​t":​ 1359013247,         "​t":​ 1359013247,
-        "​d":​ ";-)",+        "​d": ​{\"body\":​\"<​span style=\\\"​font-size:​16px;​color:​green\\\">​New notification with custom text format</​span>​ 
 +\",​\"​head\":​{\"​c\":​52428,​\"​fs\":​\"​18\"​}",
         "​h":​ "Hi there!",​         "​h":​ "Hi there!",​
         "​s":​ ""​         "​s":​ ""​
Line 94: Line 96:
         "​id":​ 1,         "​id":​ 1,
         "​t":​ 1359013247,         "​t":​ 1359013247,
-        "​d":​ ";​-)",​+        "​d":​ "{\"​body\":​\"<​p style=\\\"​text-align:​ center;\\\"><​b style=\\\"​text-align: center;​\\\"><​i style=\\\"​text-align:​ center; color: rgb(0, 0, 0);​\\\"><​span style=\\\"​color:​rgb(0,​0,​255);​text-align:​ center;​\\\">​Text bold cursive blue color in the centre</​span></​i></​b></​p>​\",​\"​head\":​{\"​c\":​39219,​\"​fs\":​\"​12\"​},​\"​multiple\":1},
         "​h":​ "Hi there!",​         "​h":​ "Hi there!",​
         "​s":​ ""​         "​s":​ ""​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam