tbkapi 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tbkapi/api_taobaoke.rb +3 -6
- data/lib/tbkapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce05a47e2a3246aef9b3941f77a61c6b56a3554a
|
4
|
+
data.tar.gz: 380514d194efa30c2472e86c76b821edf40241c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28504d795e1d1919efed8ae1ec8cf1b883cc9c448f42100dcdab81e73f13b66a540da7c8f805dfafb5ff5e99ec7c68b01398bf0a66c6b55e108c1debe208c6a0
|
7
|
+
data.tar.gz: 4a0d986c16a1856caa03a537b9c6078e6c4c35c9fc2a8bdb50ce4ec2ef25b8b318a647277d5b486a8a58eed2a95201cfec4df154378edea9cbbe5397d4968ca8
|
data/lib/tbkapi/api_taobaoke.rb
CHANGED
@@ -116,15 +116,12 @@ module Tbkapi
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def taobao_tbk_tpwd_create(url, text, api_key, secret, logo = nil, user_id = nil)
|
119
|
-
|
119
|
+
action_params = {
|
120
120
|
text: text,
|
121
121
|
url: url
|
122
122
|
}
|
123
|
-
|
124
|
-
|
125
|
-
action_params = {
|
126
|
-
tpwd_param: data.to_json
|
127
|
-
}
|
123
|
+
action_params[:logo] = logo if logo
|
124
|
+
action_params[:user_id] = user_id if user_id
|
128
125
|
params = system_params("taobao.tbk.tpwd.create", api_key).merge(action_params)
|
129
126
|
my_sign = get_sign(params, secret).upcase
|
130
127
|
Net::HTTP.get(URI(TBURI + '?' + URI.encode(build_query(params.merge({sign: my_sign})))))
|
data/lib/tbkapi/version.rb
CHANGED