본문 바로가기
해외 오픈마켓 - API/Qoo10

[API] Qoo10 - CertificationAPI.CreateCertificationKey - 인증키 발급

by Johnny's 2023. 10. 21.

CertificationAPI.CreateCertificationKey 인증키 발급 받는 방법

Qoo10은 다른 오픈마켓들과 다르게 oauth 방식이 아니다. 오히려 계정으로 API key를 발급받기 때문에 오히려 더 쉽다. Qoo10의 경우, developer 사이트가 SG, JP 각각 다르게 제공한다는 점을 참고하자. 사이트의 안내서만 다를 뿐 거의 동일하다 보면 된다. 여기서는 JP developer 기준으로 설명하겠다. (해당 페이지는 모두 일본어로 제공되기 때문에 한국어 번역을 하고 봐야하는 불편한 점이 있다.)

 

 

Qoo10 - developer JP 참고 화면

 

Qoo10 - developer SG 참고 화면

 

1. CertificationKey 발급

Request Sample을 참고하여 인증키를 발급 받아보자

 

Request

const axios = require('axios');
require("dotenv").config();

const createCertificationKey = () => {

    return axios({
        method: 'GET',
        url: `https://api.qoo10.${process.env.COUNTRY.toLowerCase()}/GMKT.INC.Front.QAPIService/Giosis.qapi`,
        params: {
            v: '1.0',
            method: 'CertificationAPI.CreateCertificationKey',
            key: `${process.env.API_KEY}`,
            user_id: `${process.env.USER_ID}`,
            pwd: `${process.env.PASSWORD}`,
        }
    }).then((response) => {
        console.log(response.data);
    }).catch((err) => {
        console.log(err);
    });

}

createCertificationKey();

  

.env

# certificationKey
COUNTRY=#국가 코드 ex) JP, SG..
API_KEY=#API KEY
USER_ID=#계정 아이디
PASSWORD=#계정 비밀번호

 

Response

- ResultObject에 인증키발급해준다.

- 인증키는 다른 API(주문 정보, 상품 정보 등)를 활용할 때 필요하므로 잘 가지고 있는다

   . 인증키를 발급하는 횟수 제한은 별도로 없기 때문에 굳이 DB에 별도로 저장할 필요 없이 API를 호출할 때마다 인증키를 발급 받는 것 또한 하나의 방법일 수 있다.(유효 기간은 발행으로부터 1년까지라고 한다. - 연동 개발 방법 참고)

 

* 참고

- JP - CertificationAPI.CreateCertificationKey

- SG - CertificationAPI.CreateCertificationKey

댓글