lib/tbkapi/api_taobaoke.rb in tbkapi-1.0.2 vs lib/tbkapi/api_taobaoke.rb in tbkapi-1.0.3
- old
+ new
@@ -122,10 +122,11 @@
}
action_params[:logo] = logo if logo
action_params[:user_id] = user_id if user_id
params = system_params("taobao.tbk.tpwd.create", 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})))))
+ params.delete(:url)
+ Net::HTTP.get(URI(TBURI + '?' + URI.encode(build_query(params.merge({sign: my_sign}))) + "&url=" + URI.encode_www_form_component(url)))
end
def taobao_wireless_share_tpwd_create(url, text, api_key, secret, logo = nil, user_id = nil)
data = {
text: text,