API 상품보기
Push System은 Android 와 iOS 단말 기기 및 유무선 Device에 Push 메시지를 전송하기 위하여 전용 Push 서버, 구글 GCM, 애플 APNS 및 SMS 전송까지 모두 통합하여 지원하는 솔루션으로 Push 기능 구현 시의 개발 비용 절감 및 운영의 편의성을 증대시킵니다. - Push Agent는 Application과 Library의 두 가지 형태로 제공이 가능합니다. - Application은 설치형으로서 서비스앱과 직접적으로 연동할 수 있습니다. - Library는 서비스앱이 import하여 Push 기능을 직접 호출할 수 있습니다. - 하나의 단말에 복수개의 Push Agent가 존재하더라도 통신 Connection은 한 개로 유지할 수 있습니다.
- End Point 기본그룹
- GETPUSH API
GET/req_at_msg_send_2_1
PUSH API - Android와 iOS 단말 기기 및 유무선 Device에 Push 메시지를 전송
curl –i - X GET
- H x-waple-authorization : 고객 키
// console 에서 직접 입력하여 사용 가능합니다.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/push//req_at_msg_send_2_1")
.header("x-waple-authorization", "고객 키")
.field("registration_id", "20XRKmxKxxDq~~fGXnbdrZGorqdjI")
.field("s_phone", "07012341234")
.field("message_type", "1")
.field("user_id", "ztest_kth")
.field("msg", "테스트 메세지 입니다")
.asJson();
// These code snippets use an open-source library.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/push//req_at_msg_send_2_1")
.header("x-waple-authorization", "고객 키")
.field("registration_id", "20XRKmxKxxDq~~fGXnbdrZGorqdjI")
.field("s_phone", "07012341234")
.field("message_type", "1")
.field("user_id", "ztest_kth")
.field("msg", "테스트 메세지 입니다")
.end(function (result) {
console.log(result.status, result.headers, result.body);
});
response = Unirest.GET "http://api.apistore.co.kr/push//req_at_msg_send_2_1",
headers:{:"x-waple-authorization" => "고객 키"},
parameters:{
:registration_id => "20XRKmxKxxDq~~fGXnbdrZGorqdjI" ,
:s_phone => "07012341234" ,
:message_type => "1" ,
:user_id => "ztest_kth" ,
:msg => "테스트 메세지 입니다" }
org.springframework.web.filter.ShallowEtagHeaderFilter$ShallowEtagResponseWrapper@7150bb71 = Unirest::GET ("http://api.apistore.co.kr/push//req_at_msg_send_2_1",
array(
"x-waple-authorization" => "고객 키"
),
array(
registration_id => "20XRKmxKxxDq~~fGXnbdrZGorqdjI" ,
s_phone => "07012341234" ,
message_type => "1" ,
user_id => "ztest_kth" ,
msg => "테스트 메세지 입니다" )
);
response = Unirest.GET ("http://api.apistore.co.kr/push//req_at_msg_send_2_1",
headers={"x-waple-authorization": "고객 키"},
params={
registration_id:"20XRKmxKxxDq~~fGXnbdrZGorqdjI" ,
s_phone:"07012341234" ,
message_type:"1" ,
user_id:"ztest_kth" ,
msg:"테스트 메세지 입니다" }
)
NSDictionary *headers = @{@"x-waple-authorization": @"고객 키"};
NSDictionary *parameters = @{
@registration_id: @"20XRKmxKxxDq~~fGXnbdrZGorqdjI",
@s_phone: @"07012341234",
@message_type: @"1",
@user_id: @"ztest_kth",
@msg: @"테스트 메세지 입니다"};
UNIUrlConnection *asyncConnection = [[UNIRest GET :^(UNISimpleRequest *request) {
[request setUrl:@"http://api.apistore.co.kr/push//req_at_msg_send_2_1"];
[request setHeaders:headers];
[request setParameters:parameters];
}] asJsonAsync:^(UNIHTTPJsonResponse *response, NSError *error) {
NSInteger code = response.code;
NSDictionary *responseHeaders = response.headers;
UNIJsonNode *body = response.body;
NSData *rawBody = response.rawBody;
}];
Task> response = Unirest.GET ("http://api.apistore.co.kr/push//req_at_msg_send_2_1")
.header("x-waple-authorization", "고객 키")
.field(registration_id, "20XRKmxKxxDq~~fGXnbdrZGorqdjI")
.field(s_phone, "07012341234")
.field(message_type, "1")
.field(user_id, "ztest_kth")
.field(msg, "테스트 메세지 입니다")
.asJson();
이 code snippet은 unirest.의 Open source Client Library를 사용하고 있습니다.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.