API 상품보기
- End Point 기본그룹
- GETOTP 취득
- GETOTP 메시지전송
GET/totp/
OTP 취득 - OTP 값을 취득합니다. ( xml, json, txt )
curl –i - X GET
- H x-waple-authorization : 고객 키
// console 에서 직접 입력하여 사용 가능합니다.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/otp//totp/")
.header("x-waple-authorization", "고객 키")
.field("SeedKey", "5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD")
.field("OtpLength", "6")
.field("LifeCycle", "60")
.field("ResultType", "txt")
.field("GetTime", "True")
.asJson();
// These code snippets use an open-source library.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/otp//totp/")
.header("x-waple-authorization", "고객 키")
.field("SeedKey", "5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD")
.field("OtpLength", "6")
.field("LifeCycle", "60")
.field("ResultType", "txt")
.field("GetTime", "True")
.end(function (result) {
console.log(result.status, result.headers, result.body);
});
response = Unirest.GET "http://api.apistore.co.kr/otp//totp/",
headers:{:"x-waple-authorization" => "고객 키"},
parameters:{
:SeedKey => "5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD" ,
:OtpLength => "6" ,
:LifeCycle => "60" ,
:ResultType => "txt" ,
:GetTime => "True" }
org.springframework.web.filter.ShallowEtagHeaderFilter$ShallowEtagResponseWrapper@4835a190 = Unirest::GET ("http://api.apistore.co.kr/otp//totp/",
array(
"x-waple-authorization" => "고객 키"
),
array(
SeedKey => "5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD" ,
OtpLength => "6" ,
LifeCycle => "60" ,
ResultType => "txt" ,
GetTime => "True" )
);
response = Unirest.GET ("http://api.apistore.co.kr/otp//totp/",
headers={"x-waple-authorization": "고객 키"},
params={
SeedKey:"5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD" ,
OtpLength:"6" ,
LifeCycle:"60" ,
ResultType:"txt" ,
GetTime:"True" }
)
NSDictionary *headers = @{@"x-waple-authorization": @"고객 키"};
NSDictionary *parameters = @{
@SeedKey: @"5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD",
@OtpLength: @"6",
@LifeCycle: @"60",
@ResultType: @"txt",
@GetTime: @"True"};
UNIUrlConnection *asyncConnection = [[UNIRest GET :^(UNISimpleRequest *request) {
[request setUrl:@"http://api.apistore.co.kr/otp//totp/"];
[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/otp//totp/")
.header("x-waple-authorization", "고객 키")
.field(SeedKey, "5DE2D30DDB4AE2F2CD71973573823AD781A0C2CD")
.field(OtpLength, "6")
.field(LifeCycle, "60")
.field(ResultType, "txt")
.field(GetTime, "True")
.asJson();
이 code snippet은 unirest.의 Open source Client Library를 사용하고 있습니다.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.