jos
A node.js library for jos (JD-Open-Service).
Installing
npm install jos
Example usage
var jos = ; //Build options with your jd accountvar options = "api_url":"http://gw.api.360buy.com/routerjson" "app_secret": yourAppSecret "app_key": yourAppKey "format": "json" "v": "2.0" //Get a client with optionsvar jdClient = jos; //Specify app paramsvar appParam = "ids": "982040" "base":"sku_id,name,image_path,brand_name"; //Call jdClient.invokeMethod(method,appParam,callback) to execute query.jdClient;