API 상품보기
- End Point 기본그룹
- GET유니크 키(고유번호) 취득
- GET유니크 키(고유번호) 검증
GET/activation/getUniqueKey.api
유니크 키(고유번호) 취득 - 소프트웨어가 필요로 하는 유일성을 보증하는 고유번호(시리얼번호, UUID, GUID)의 값을 취득합니다.
curl –i - X GET
- H x-waple-authorization : 고객 키
// console 에서 직접 입력하여 사용 가능합니다.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/serial//activation/getUniqueKey.api")
.header("x-waple-authorization", "고객 키")
.field("ID", "MyApp")
.field("Length", "40")
.field("Delimiter", "-")
.field("Cut", "0")
.field("Type", "H")
.field("ResultType", "xml")
.asJson();
// These code snippets use an open-source library.
HttpResponse response = Unirest.GET ("http://api.apistore.co.kr/serial//activation/getUniqueKey.api")
.header("x-waple-authorization", "고객 키")
.field("ID", "MyApp")
.field("Length", "40")
.field("Delimiter", "-")
.field("Cut", "0")
.field("Type", "H")
.field("ResultType", "xml")
.end(function (result) {
console.log(result.status, result.headers, result.body);
});
response = Unirest.GET "http://api.apistore.co.kr/serial//activation/getUniqueKey.api",
headers:{:"x-waple-authorization" => "고객 키"},
parameters:{
:ID => "MyApp" ,
:Length => "40" ,
:Delimiter => "-" ,
:Cut => "0" ,
:Type => "H" ,
:ResultType => "xml" }
org.springframework.web.filter.ShallowEtagHeaderFilter$ShallowEtagResponseWrapper@52ce654a = Unirest::GET ("http://api.apistore.co.kr/serial//activation/getUniqueKey.api",
array(
"x-waple-authorization" => "고객 키"
),
array(
ID => "MyApp" ,
Length => "40" ,
Delimiter => "-" ,
Cut => "0" ,
Type => "H" ,
ResultType => "xml" )
);
response = Unirest.GET ("http://api.apistore.co.kr/serial//activation/getUniqueKey.api",
headers={"x-waple-authorization": "고객 키"},
params={
ID:"MyApp" ,
Length:"40" ,
Delimiter:"-" ,
Cut:"0" ,
Type:"H" ,
ResultType:"xml" }
)
NSDictionary *headers = @{@"x-waple-authorization": @"고객 키"};
NSDictionary *parameters = @{
@ID: @"MyApp",
@Length: @"40",
@Delimiter: @"-",
@Cut: @"0",
@Type: @"H",
@ResultType: @"xml"};
UNIUrlConnection *asyncConnection = [[UNIRest GET :^(UNISimpleRequest *request) {
[request setUrl:@"http://api.apistore.co.kr/serial//activation/getUniqueKey.api"];
[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/serial//activation/getUniqueKey.api")
.header("x-waple-authorization", "고객 키")
.field(ID, "MyApp")
.field(Length, "40")
.field(Delimiter, "-")
.field(Cut, "0")
.field(Type, "H")
.field(ResultType, "xml")
.asJson();
이 code snippet은 unirest.의 Open source Client Library를 사용하고 있습니다.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.
더 자세한 정보가 필요할 경우 unirest.io 페이지를 방문하세요.