garrytan-ebayapi 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -0
- data/VERSION +1 -1
- data/ebayapi.gemspec +1241 -0
- data/lib/ebay/api.rb +8 -1
- data/lib/ebay/requests/abstract.rb +1 -2
- data/lib/ebay/requests/fetch_token.rb +1 -0
- data/lib/ebay/requests/get_session_id.rb +1 -0
- data/lib/ebay/types/app_requester_credentials.rb +3 -3
- metadata +24 -4
data/lib/ebay/api.rb
CHANGED
@@ -127,7 +127,11 @@ module Ebay #:nodoc:
|
|
127
127
|
|
128
128
|
def invoke(request, format)
|
129
129
|
body = build_body(request)
|
130
|
-
|
130
|
+
|
131
|
+
3.times { puts "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" }
|
132
|
+
puts "ebay api.rb invoke: uri [#{service_uri.path}] body [#{body.gsub(/</, %Q[\n<])}]"
|
133
|
+
3.times { puts "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" }
|
134
|
+
|
131
135
|
response = connection.post( service_uri.path,
|
132
136
|
body,
|
133
137
|
build_headers(request.call_name)
|
@@ -184,6 +188,9 @@ module Ebay #:nodoc:
|
|
184
188
|
result = XML::Mapping.load_object_from_xml(xml.root)
|
185
189
|
case result.ack
|
186
190
|
when Ebay::Types::AckCode::Failure, Ebay::Types::AckCode::PartialFailure
|
191
|
+
3.times { puts "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" }
|
192
|
+
puts "returned from ebay: #{content.gsub(/</, %Q[\n<])}"
|
193
|
+
3.times { puts "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" }
|
187
194
|
raise RequestError.new(result.errors)
|
188
195
|
end
|
189
196
|
when :raw
|
@@ -25,8 +25,7 @@ module Ebay # :nodoc:
|
|
25
25
|
text_node :message_id, 'MessageID', :optional => true
|
26
26
|
text_node :version, 'Version', :optional => true
|
27
27
|
text_node :end_user_ip, 'EndUserIP', :optional => true
|
28
|
-
object_node :requester_credentials, 'RequesterCredentials', :class => XMLRequesterCredentials, :optional => true
|
29
|
-
object_node :app_requester_credentials, 'RequesterCredentials', :class => AppRequesterCredentials, :optional => true
|
28
|
+
object_node :requester_credentials, 'RequesterCredentials', :class => XMLRequesterCredentials, :optional => true
|
30
29
|
text_node :error_handling, 'ErrorHandling', :optional => true
|
31
30
|
text_node :invocation_id, 'InvocationID', :optional => true
|
32
31
|
text_node :output_selector, 'OutputSelector', :optional => true
|
@@ -9,6 +9,7 @@ module Ebay # :nodoc:
|
|
9
9
|
include XML::Mapping
|
10
10
|
include Initializer
|
11
11
|
root_element_name 'FetchTokenRequest'
|
12
|
+
object_node :app_requester_credentials, 'RequesterCredentials', :class => AppRequesterCredentials, :optional => true
|
12
13
|
text_node :secret_id, 'SecretID', :optional => true
|
13
14
|
text_node :session_id, 'SessionID', :optional => true
|
14
15
|
boolean_node :include_rest_token, 'IncludeRESTToken', 'true', 'false', :optional => true
|
@@ -7,6 +7,7 @@ module Ebay # :nodoc:
|
|
7
7
|
include XML::Mapping
|
8
8
|
include Initializer
|
9
9
|
root_element_name 'GetSessionIDRequest'
|
10
|
+
object_node :app_requester_credentials, 'RequesterCredentials', :class => AppRequesterCredentials, :optional => true
|
10
11
|
text_node :ru_name, 'RuName', :optional => true
|
11
12
|
end
|
12
13
|
end
|
@@ -9,9 +9,9 @@ module Ebay # :nodoc:
|
|
9
9
|
include XML::Mapping
|
10
10
|
include Initializer
|
11
11
|
root_element_name 'RequesterCredentials'
|
12
|
-
text_node :app_id, 'AppId', :optional =>
|
13
|
-
text_node :dev_id, 'DevId', :optional =>
|
14
|
-
text_node :auth_cert, 'AuthCert', :optional =>
|
12
|
+
text_node :app_id, 'AppId', :optional => true
|
13
|
+
text_node :dev_id, 'DevId', :optional => true
|
14
|
+
text_node :auth_cert, 'AuthCert', :optional => true
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garrytan-ebayapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Fauser
|
@@ -9,10 +9,29 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: xml-mapping
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.8.1
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: money
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.7.1
|
34
|
+
version:
|
16
35
|
description: Ruby interface to the eBay XML Trading API
|
17
36
|
email: codyfauser@gmail.com
|
18
37
|
executables: []
|
@@ -28,6 +47,7 @@ files:
|
|
28
47
|
- README
|
29
48
|
- Rakefile
|
30
49
|
- VERSION
|
50
|
+
- ebayapi.gemspec
|
31
51
|
- examples/add_item.rb
|
32
52
|
- examples/add_member_message_aaq_to_partner.rb
|
33
53
|
- examples/config.rb
|