lib/tbkapi/api_taobaoke.rb in tbkapi-0.0.8 vs lib/tbkapi/api_taobaoke.rb in tbkapi-0.0.9
- old
+ new
@@ -54,10 +54,19 @@
}
params = system_params("taobao.tbk.items.detail.get",api_key).merge(action_params)
my_sign = get_sign(params, secret).upcase
Net::HTTP.get(URI(TBURI + '?' + build_query(params.merge({sign: my_sign}))))
end
+ def taobao_tbk_item_info_get(ids, api_key, secret)
+ action_params = {
+ fields: "num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,nick,seller_id,volume,cat_leaf_name,cat_name",
+ num_iids: ids.join(",")
+ }
+ params = system_params("taobao.tbk.item.info.get",api_key).merge(action_params)
+ my_sign = get_sign(params, secret).upcase
+ Net::HTTP.get(URI(TBURI + '?' + build_query(params.merge({sign: my_sign}))))
+ end
def taobao_tbk_item_coupon_get(q, pid, api_key, secret)
action_params = {
q: q,
pid: pid
@@ -103,8 +112,9 @@
}
params = system_params("taobao.tbk.dg.item.coupon.get", api_key).merge(action_params)
my_sign = get_sign(params, secret).upcase
Net::HTTP.get(URI(TBURI + '?' + URI.encode(build_query(params.merge({sign: my_sign})))))
end
+
end
end