회원 삭제하기
스윙투앱 회원삭제 API
회원 삭제하기 API
Request Body
Name
Type
Description
Last updated
스윙투앱 회원삭제 API
Last updated
{
// Response
result : 1, // 삭제한 회원숫자
}var form = new FormData();
form.append("app_id", "app_id");
form.append("app_api_key", "api_key");
form.append("user_string_id", "사용자 아이디");
var settings = {
"url": "https://www.swing2app.com/swapi/delete_app_user",
"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/delete_app_user")
.multiPartContent()
.field("app_id", "app_id")
.field("app_api_key", "api_key")
.field("user_string_id", "사용자아이디")
.asString();
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.swing2app.com/swapi/delete_app_user',
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','user_string_id' => '사용자 아이디'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var apiKey = "test_api_key";
var appId = "test_app_id";
var userStringId = '사용자아이디';
$.ajax({
url: "https://www.swing2app.co.kr/swapi/delete_app_user",
type: "post",
dataType: "json",
data : {
app_id : appId,
user_string_id : userStringId,
app_api_key : apiKey
},
success: function (model) {
if( model.result > 0 )
{
console.log("회원삭제 성공");
}
}
});