odnoklassniki 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.odnoklassniki.ru/api/users/getCurrentUser?access_token=token&application_key=application_key&sig=4784959f6620c78221bff139d6cf9309
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - odnoklassniki ruby gem/0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Invocation-Error:
24
+ - '101'
25
+ Pragma:
26
+ - no-cache
27
+ Expires:
28
+ - Thu, 01 Jan 1970 00:00:00 GMT
29
+ Cache-Control:
30
+ - no-cache
31
+ - no-store
32
+ Content-Type:
33
+ - application/json;charset=utf-8
34
+ Content-Language:
35
+ - en-US
36
+ Content-Length:
37
+ - '88'
38
+ Date:
39
+ - Wed, 04 Feb 2015 12:56:52 GMT
40
+ Connection:
41
+ - close
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"error_code":101,"error_msg":"PARAM_API_KEY : Application not exist","error_data":null}'
45
+ http_version:
46
+ recorded_at: Wed, 04 Feb 2015 12:56:52 GMT
47
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.odnoklassniki.ru/oauth/token.do
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - odnoklassniki ruby gem/0.0.1
14
+ Content-Length:
15
+ - '0'
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 400
21
+ message: Bad Request
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ Content-Type:
26
+ - text/html;charset=utf-8
27
+ Content-Language:
28
+ - en
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Vary:
32
+ - Accept-Encoding
33
+ Date:
34
+ - Wed, 04 Feb 2015 13:00:29 GMT
35
+ Connection:
36
+ - close
37
+ body:
38
+ encoding: UTF-8
39
+ string: '<html><head><title>Apache Tomcat/7.0.57 - Error report</title><style><!--H1
40
+ {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
41
+ H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
42
+ H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
43
+ BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
44
+ B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
45
+ P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
46
+ {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
47
+ Status 400 - Provide OAUTH request parameters!</h1><HR size="1" noshade="noshade"><p><b>type</b>
48
+ Status report</p><p><b>message</b> <u>Provide OAUTH request parameters!</u></p><p><b>description</b>
49
+ <u>The request sent by the client was syntactically incorrect.</u></p><HR
50
+ size="1" noshade="noshade"><h3>Apache Tomcat/7.0.57</h3></body></html>'
51
+ http_version:
52
+ recorded_at: Wed, 04 Feb 2015 13:00:29 GMT
53
+ recorded_with: VCR 2.9.3
metadata ADDED
@@ -0,0 +1,255 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: odnoklassniki
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - gazay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.9.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.9'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.9.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday_middleware
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.9'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.9.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.9'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.9.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: multi_json
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.10'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 1.10.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.10'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 1.10.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: pry
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - '='
78
+ - !ruby/object:Gem::Version
79
+ version: 0.10.1
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '='
85
+ - !ruby/object:Gem::Version
86
+ version: 0.10.1
87
+ - !ruby/object:Gem::Dependency
88
+ name: byebug
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 3.5.1
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '='
99
+ - !ruby/object:Gem::Version
100
+ version: 3.5.1
101
+ - !ruby/object:Gem::Dependency
102
+ name: pry-byebug
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - '='
106
+ - !ruby/object:Gem::Version
107
+ version: 3.0.0
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - '='
113
+ - !ruby/object:Gem::Version
114
+ version: 3.0.0
115
+ - !ruby/object:Gem::Dependency
116
+ name: minitest
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '='
120
+ - !ruby/object:Gem::Version
121
+ version: 5.5.1
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - '='
127
+ - !ruby/object:Gem::Version
128
+ version: 5.5.1
129
+ - !ruby/object:Gem::Dependency
130
+ name: minitest-reporters
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - '='
134
+ - !ruby/object:Gem::Version
135
+ version: 1.0.10
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - '='
141
+ - !ruby/object:Gem::Version
142
+ version: 1.0.10
143
+ - !ruby/object:Gem::Dependency
144
+ name: simplecov
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - '='
148
+ - !ruby/object:Gem::Version
149
+ version: 0.9.1
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - '='
155
+ - !ruby/object:Gem::Version
156
+ version: 0.9.1
157
+ - !ruby/object:Gem::Dependency
158
+ name: rake
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - '='
162
+ - !ruby/object:Gem::Version
163
+ version: 10.1.0
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - '='
169
+ - !ruby/object:Gem::Version
170
+ version: 10.1.0
171
+ - !ruby/object:Gem::Dependency
172
+ name: vcr
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - '='
176
+ - !ruby/object:Gem::Version
177
+ version: 2.9.3
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - '='
183
+ - !ruby/object:Gem::Version
184
+ version: 2.9.3
185
+ - !ruby/object:Gem::Dependency
186
+ name: webmock
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - '='
190
+ - !ruby/object:Gem::Version
191
+ version: 1.20.4
192
+ type: :development
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - '='
197
+ - !ruby/object:Gem::Version
198
+ version: 1.20.4
199
+ description: Ruby wrapper for REST Odnoklassniki API calls. GET and POST calls.
200
+ email:
201
+ - alex.gaziev@gmail.com
202
+ executables: []
203
+ extensions: []
204
+ extra_rdoc_files: []
205
+ files:
206
+ - ".gitignore"
207
+ - ".travis.yml"
208
+ - Gemfile
209
+ - LICENSE
210
+ - README.md
211
+ - Rakefile
212
+ - lib/odnoklassniki.rb
213
+ - lib/odnoklassniki/client.rb
214
+ - lib/odnoklassniki/config.rb
215
+ - lib/odnoklassniki/connection.rb
216
+ - lib/odnoklassniki/error.rb
217
+ - lib/odnoklassniki/request.rb
218
+ - lib/odnoklassniki/version.rb
219
+ - odnoklassniki.gemspec
220
+ - test/lib/odnoklassniki/client_test.rb
221
+ - test/lib/odnoklassniki/config_test.rb
222
+ - test/lib/odnoklassniki/error_test.rb
223
+ - test/lib/odnoklassniki/request_test.rb
224
+ - test/lib/odnoklassniki_test.rb
225
+ - test/test_helper.rb
226
+ - test/vcr_cassettes/client_wrong_credentials_getCurrentUser.yml
227
+ - test/vcr_cassettes/client_wrong_credentials_post.yml
228
+ - test/vcr_cassettes/client_wrong_credentials_token.yml
229
+ - test/vcr_cassettes/wrong_credentials_getCurrentUser.yml
230
+ - test/vcr_cassettes/wrong_credentials_token.yml
231
+ homepage: https://github.com/gazay/odnoklassniki
232
+ licenses:
233
+ - MIT
234
+ metadata: {}
235
+ post_install_message:
236
+ rdoc_options: []
237
+ require_paths:
238
+ - lib
239
+ required_ruby_version: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ required_rubygems_version: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ requirements: []
250
+ rubyforge_project: odnoklassniki
251
+ rubygems_version: 2.2.2
252
+ signing_key:
253
+ specification_version: 4
254
+ summary: Ruby wrapper for Odnoklassniki API
255
+ test_files: []