papapi 0.1.10 → 0.1.11
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 +5 -5
- data/lib/papapi/affiliate.rb +10 -0
- data/lib/papapi/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cd6aad4e54fde1cad008bb55236d5349a8c2a487be5def0c8b9377ffa886ef1f
|
|
4
|
+
data.tar.gz: 215b4a2c4cb47a56c2ffaa50c63a9750cd7db22ef6ec836cc04132fb9804b33d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c0935bd1dadd5178058896604da6646f09f997d86a72d8fea5b3fcc258d9b83ca3835080528b2220d24288783f75590fa354b6715b5555bc2002853aad12da3
|
|
7
|
+
data.tar.gz: 46b3a778eb747eaa532bada7b29465eaec1c88897023142a0302f153e7d42401a610b99fb2a25bd6cc6e4bd35c1e330dff3e76f3134564cd3533ccc392e095f2
|
data/lib/papapi/affiliate.rb
CHANGED
|
@@ -74,6 +74,16 @@ module Papapi
|
|
|
74
74
|
@response ? @response[:userid] : @user_id
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
def getLoginKey
|
|
78
|
+
raise "Merchant session is required" if @session.is_affiliate?
|
|
79
|
+
|
|
80
|
+
request = Papapi::FormRequest.new('Pap_Auth_LoginKeyService', 'getLoginKey', @session)
|
|
81
|
+
request.set_param("userId", self.id)
|
|
82
|
+
|
|
83
|
+
response = request.send
|
|
84
|
+
|
|
85
|
+
return response[:LoginKey]
|
|
86
|
+
end
|
|
77
87
|
|
|
78
88
|
def id=(user_id)
|
|
79
89
|
@user_id = user_id
|
data/lib/papapi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: papapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Nizovtsev
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -94,7 +94,7 @@ homepage: https://github.com/JSBizon/papapi
|
|
|
94
94
|
licenses:
|
|
95
95
|
- MIT
|
|
96
96
|
metadata: {}
|
|
97
|
-
post_install_message:
|
|
97
|
+
post_install_message:
|
|
98
98
|
rdoc_options: []
|
|
99
99
|
require_paths:
|
|
100
100
|
- lib
|
|
@@ -109,9 +109,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
111
|
requirements: []
|
|
112
|
-
rubyforge_project:
|
|
113
|
-
rubygems_version: 2.
|
|
114
|
-
signing_key:
|
|
112
|
+
rubyforge_project:
|
|
113
|
+
rubygems_version: 2.7.11
|
|
114
|
+
signing_key:
|
|
115
115
|
specification_version: 4
|
|
116
116
|
summary: A client for the Post Affiliate Pro API
|
|
117
117
|
test_files:
|