본문 바로가기

해외 오픈마켓 - API/Shopee3

[API] Shopee - API 호출 예시 GlobalProduct(CB seller only) - 상품정보 요청 시, Common Parameters, Request Parameters 의 필수 값들은 반드시 넣어준다.(Required = true) Request 'use strict'; const axios = require('axios'); const crypto = require('crypto'); require("dotenv").config(); const signature = (sign_format) => { sign_format = sign_format.toString(); const sign = crypto.createHmac('sha256', process.env.KEY).update(sign_format).digest('hex.. 2023. 4. 23.
[API] Shopee - Getting and refreshing the access_token Getting and refreshing the access_token - Access_token 발급 받는 방법 access_token 만료 시간 : 4시간 refresh_token 만료 시간 : 30일 Axios 요청 발급받은 code, main_acount_id 값을 이용해서 access_token, refresh_token을 발급해보자. Request const axios = require('axios'); const crypto = require('crypto'); const getAccesstoken = () => { const code = "43436c63546c6d7966785546774f6f47"; // 발급받은 code 값 입력 const host = 'https://partner.sh.. 2023. 4. 12.
[API] Shopee - Create APP, Authorization 1. App List → Add New App App은 최대 10개까지 만들 수 있다. 2. Create App App Category, App Name, App Description, App Logo를 작성한다. TESTAPP이라는 APP이 생성되었고, 현재 Developing 상태이다. Go Live를 하기 위해서는 상품정보에 대한 내용을 간략히 작성해야한다. 비지니스 제품 URL, 테스트 사용자 이름, 테스트 비밀번호, 간략한 소개, 클라이언트 사용자 인터페이스 스크린샷 등 작성하는데 크게 어려운 부분은 없다. 작성하는 부분은 Skip 하겠다. (라이브 버전이 되면 Developing → Online 으로 상태가 변경된다.) 테스트를 할 수 있는 Test partner_id, Test Key 값이 .. 2023. 4. 12.