Sending a push using the push API
Send Swing2App push using push API
Swing2App provides the following to send push messages sent from the dashboard in the form of API.
The use of APIs in a manner not previously agreed upon and indiscriminate mass delivery may be restricted.
This API is provided to paid app users.
1. API Specification
API Address | https://api.swing2app.com/swapi/push_send |
HTTP Method | Post |
Parameter Name | Input Example | Explanation |
---|---|---|
app_id | kbe35b81a-5dc6-4cec-ad76-e7bcc3310642 | *App ID issued by Swing2App |
send_target_list | targetUserId or -1 | *User ID to send User_id for single send When sending multiple transmissions, separate them with “,” and enter ex:) user_id1,user_id2 Enter -1 for all shipments ex:) -1 |
send_target_type_list | MEMBER or ALL_TARGET | * Enter MEMBER as many times as you want to send to individual users. (Example: ‘MEMBER,MEMBER’), For shipping to all, include ‘ALL_TARGET’. (Example: ‘ALL_TARGET’), |
send_type | push | *Enter ‘push’ because it is push sending |
message_json | { “messageTitle” : “Content” , “messageContent” : “Content” , “messageLinkUrl” : “http://m.naver.com” , “messageImageUrl” : “http://swing2app.com/abc.png” } | *Enter the following variable according to the JSON format string messageTitle: Title, messageContent: Content messageLinkUrl: Link address messageImageUrl: Image address *Can be omitted if there is no link address and image address |
api_user | help@swing2app.com | *Swing2App User ID |
api_key | abewfw235ksie8d | *API KEY issued by Swing2App |
* App ID and API KEY that need to be issued can be issued by requesting the customer service center.
[javascript Implementation example – Send all]
[javascript Implementation example – Individual delivery]
Last updated