푸시알림 읽음처리 API
스윙투앱 푸시알림 읽음처리로 변경하는 API
푸시 알림 목록을 받기위한 API
Request Body
Name
Type
Description
Last updated
스윙투앱 푸시알림 읽음처리로 변경하는 API
Last updated
{
"result": true
}var form = new FormData();
form.append("app_id", "app_id");
form.append("app_api_key", "api_key");
form.append("receive_id", "1234");
var settings = {
"url": "https://www.swing2app.com/swapi/push_notification_history",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://www.swing2app.com/swapi/push_notification_history")
.multiPartContent()
.field("app_id", "app_id")
.field("app_api_key", "api_key")
.field("receive_id", "1234")
.asString();
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.swing2app.com/swapi/push_notification_history',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('app_id' => 'app_id','app_api_key' => 'api_key','receive_id' => '1234'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;