Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sk11st

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sk11st

Javascript 11st API package, Support Node.js

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

sk11st API for javascript

Javascript sk11st API package, Support Node.js

Installation

npm install --save sk11st

Getting Started

with Node.js

const sk11st = require('sk11st')

Authentication

api key

sk11st API

  • apikey: sk11st API key

sk11st.product.search(apikey: string, options: object = {})

호출 예 )

const sk11st = require('sk11st');
const convert  = require('xml-js');
const iconv = require('iconv-lite');

var options = {
    'apiCode' : 'ProductSearch',
    'keyword' : '세탁기'
}
sk11st.product.search(apikey, options).then(function (res){
    var decoded = iconv.decode(res.data,'EUC-KR');
    var results = convert.xml2json(decoded, {compact: true, spaces: 4});
    console.log(results);
});

Details

  • http://openapi.11st.co.kr/openapi/OpenApiGuide.tmall

전체 API

const sk11st = {
    product: {
        /** 상품 검색 API */
        search(apikey, options = {}) {
            options.key = apikey;
            options.apiCode = 'ProductSearch';
            return Request.getOpen(apikey, '', options)
        },
        /** 상품 카테고리 검색 API */
        catetorySearch(apikey, options = {}) {
            options.key = apikey;
            options.apiCode = 'ProductSearch';
            options.option = 'Categories';
            return Request.getOpen(apikey, '', options)
        },
        /** 상품 카테고리 정보 검색 API */
        catetoryInfo(apikey, options = {}) {
            options.key = apikey;
            options.apiCode = 'CategoryInfo';
            return Request.getOpen(apikey, '', options)
        },
        /** 상품 카테고리 정보 검색 API */
        productImage(apikey, options = {}) {
            options.key = apikey;
            options.apiCode = 'ProductImage';
            return Request.getOpen(apikey, '', options)
        },
        /** 상품 카테고리 API */
        category(apikey, options = {}) {
            return Request.get(apikey, '/cateservice/category', options)
        },
        categoryByNum(apikey, options = {}) {
            return Request.get(apikey, '/cateservice/category/'+options.ctgrNm, options)
        },
    }
}

License

MIT

Copyright 2018-2020. hkjang. All rights reserved.

Keywords

FAQs

Package last updated on 23 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc