kewego_party 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +1 -0
- data/.gitignore +6 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +47 -0
- data/Rakefile +10 -0
- data/TODO.md +4 -0
- data/kewego_party.gemspec +35 -0
- data/lib/kewego_party.rb +29 -0
- data/lib/kewego_party/cache.rb +42 -0
- data/lib/kewego_party/client.rb +52 -0
- data/lib/kewego_party/client/app.rb +16 -0
- data/lib/kewego_party/client/auth.rb +35 -0
- data/lib/kewego_party/client/channel.rb +57 -0
- data/lib/kewego_party/client/channel_list.rb +18 -0
- data/lib/kewego_party/client/upload.rb +31 -0
- data/lib/kewego_party/client/video.rb +36 -0
- data/lib/kewego_party/configuration.rb +49 -0
- data/lib/kewego_party/connection.rb +20 -0
- data/lib/kewego_party/exceptions.rb +5 -0
- data/lib/kewego_party/parse_xml.rb +19 -0
- data/lib/kewego_party/request.rb +55 -0
- data/lib/kewego_party/version.rb +3 -0
- data/spec/fixtures/app_get_auth_token.xml +6 -0
- data/spec/fixtures/app_get_token.xml +5 -0
- data/spec/fixtures/cassette_library/app_check_token.yml +68 -0
- data/spec/fixtures/cassette_library/app_get_token.yml +30 -0
- data/spec/fixtures/cassette_library/channel_get_details.yml +68 -0
- data/spec/fixtures/cassette_library/channel_get_player_code.yml +69 -0
- data/spec/fixtures/cassette_library/channel_get_thumbnail.yml +68 -0
- data/spec/fixtures/cassette_library/channel_get_videos.yml +68 -0
- data/spec/fixtures/cassette_library/channel_list_get_channels.yml +68 -0
- data/spec/fixtures/cassette_library/channel_list_get_details.yml +68 -0
- data/spec/fixtures/cassette_library/upload_get_available_categories.yml +115 -0
- data/spec/fixtures/cassette_library/video_get_details.yml +69 -0
- data/spec/fixtures/cassette_library/video_get_stats.yml +60 -0
- data/spec/fixtures/kewego_response_error.xml +5 -0
- data/spec/fixtures/not_kewego_response.xml +4 -0
- data/spec/fixtures/upload_get_upload_progress.xml +8 -0
- data/spec/kewego_party/client/app_spec.rb +28 -0
- data/spec/kewego_party/client/auth_spec.rb +45 -0
- data/spec/kewego_party/client/cache_spec.rb +34 -0
- data/spec/kewego_party/client/channel_list_spec.rb +36 -0
- data/spec/kewego_party/client/channel_spec.rb +59 -0
- data/spec/kewego_party/client/request_spec.rb +31 -0
- data/spec/kewego_party/client/upload_spec.rb +39 -0
- data/spec/kewego_party/client/video_spec.rb +33 -0
- data/spec/kewego_party/client_spec.rb +20 -0
- data/spec/kewego_party_spec.rb +22 -0
- data/spec/spec_helper.rb +32 -0
- metadata +257 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Tue, 09 Aug 2011 14:19:56 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8</appToken></message>
|
27
|
+
<KqId>4e41420cced37</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/channel/getThumbnail/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&csig=iLyROoafYVn8
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Tue, 09 Aug 2011 14:19:57 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<kewego_response error="yes">
|
55
|
+
<kewego_error errno="6020">No video found with this CSIG</kewego_error>
|
56
|
+
<kewego_request>
|
57
|
+
<url><![CDATA[http://api.kewego.com/channel/getThumbnail/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&csig=iLyROoafYVn8]]></url>
|
58
|
+
<get>
|
59
|
+
<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8]]></appToken>
|
60
|
+
<csig><![CDATA[iLyROoafYVn8]]></csig>
|
61
|
+
</get>
|
62
|
+
<post/>
|
63
|
+
<file/>
|
64
|
+
</kewego_request>
|
65
|
+
<KqId>4e41420d6515c</KqId>
|
66
|
+
</kewego_response>
|
67
|
+
|
68
|
+
http_version: "1.1"
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Tue, 09 Aug 2011 14:19:53 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8</appToken></message>
|
27
|
+
<KqId>4e41420955eb9</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/channel/getVideos/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&csig=iLyROoafYVn8
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Tue, 09 Aug 2011 14:19:53 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<kewego_response error="yes">
|
55
|
+
<kewego_error errno="6020">No video found with this CSIG</kewego_error>
|
56
|
+
<kewego_request>
|
57
|
+
<url><![CDATA[http://api.kewego.com/channel/getVideos/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&csig=iLyROoafYVn8]]></url>
|
58
|
+
<get>
|
59
|
+
<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8]]></appToken>
|
60
|
+
<csig><![CDATA[iLyROoafYVn8]]></csig>
|
61
|
+
</get>
|
62
|
+
<post/>
|
63
|
+
<file/>
|
64
|
+
</kewego_request>
|
65
|
+
<KqId>4e414209e17d1</KqId>
|
66
|
+
</kewego_response>
|
67
|
+
|
68
|
+
http_version: "1.1"
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Tue, 09 Aug 2011 14:19:47 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8</appToken></message>
|
27
|
+
<KqId>4e4142039b855</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/channelList/getChannels/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&lsig=327982b09c3l&max_result_per_page=100&start=0
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Tue, 09 Aug 2011 14:19:48 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
|
53
|
+
<kewego_response>\n\
|
54
|
+
\t<message><channels><total_result>7</total_result><channel><index>1</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Recetas]]></name><creation_date>2011-06-29 09:50:21</creation_date><csig>iLyROoafYVn8</csig><counter>0</counter><nbvideos>2</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>2</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Salud]]></name><creation_date>2011-06-29 09:55:34</creation_date><csig>iLyROoafYVnz</csig><counter>0</counter><nbvideos>4</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>3</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Belleza]]></name><creation_date>2011-06-29 10:08:30</creation_date><csig>iLyROoafYVnr</csig><counter>0</counter><nbvideos>2</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>4</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Curiosidades]]></name><creation_date>2011-08-01 15:05:27</creation_date><csig>iLyROoafY92w</csig><counter>0</counter><nbvideos>9</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>5</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Embarazo y Beb\xC3\xA9]]></name><creation_date>2011-08-01 15:04:05</creation_date><csig>iLyROoafY92z</csig><counter>0</counter><nbvideos>8</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>6</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Juegos y Fiestas]]></name><creation_date>2011-08-01 15:04:39</creation_date><csig>iLyROoafY92r</csig><counter>0</counter><nbvideos>3</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel><channel><index>7</index><username><![CDATA[charhadasadmin]]></username><country_code>fr</country_code><name><![CDATA[Psicolog\xC3\xADa y Educaci\xC3\xB3n]]></name><creation_date>2011-08-01 15:04:27</creation_date><csig>iLyROoafY922</csig><counter>0</counter><nbvideos>4</nbvideos><description><![CDATA[]]></description><pid><![CDATA[]]></pid><thumbnail><![CDATA[http://tll.kewego.com/t/img/thumb_default.jpg]]></thumbnail><title_alias><![CDATA[]]></title_alias></channel></channels></message>\n\
|
55
|
+
\t<kewego_request>\n\
|
56
|
+
\t\t<url><![CDATA[http://api.kewego.com/channelList/getChannels/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&start=0&lsig=327982b09c3l&max_result_per_page=100]]></url>\n\
|
57
|
+
\t\t<get>\n\
|
58
|
+
\t\t\t<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8]]></appToken>\n\
|
59
|
+
\t\t\t<start/>\n\
|
60
|
+
\t\t\t<lsig><![CDATA[327982b09c3l]]></lsig>\n\
|
61
|
+
\t\t\t<max_result_per_page><![CDATA[100]]></max_result_per_page>\n\
|
62
|
+
\t\t</get>\n\
|
63
|
+
\t\t<post/>\n\
|
64
|
+
\t\t<file/>\n\
|
65
|
+
\t</kewego_request>\n\
|
66
|
+
\t<KqId>4e4142042da0c</KqId>\n\
|
67
|
+
</kewego_response>\n"
|
68
|
+
http_version: "1.1"
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Tue, 09 Aug 2011 14:19:49 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8</appToken></message>
|
27
|
+
<KqId>4e4142050b4e4</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/channelList/getDetails/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&lsig=327982b09c3l
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Tue, 09 Aug 2011 14:19:49 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<kewego_response>
|
55
|
+
<message><username>charhadasadmin</username><title><![CDATA[Todos los canales]]></title><description><![CDATA[Todos los canales de CharHadasTv]]></description><lsig>327982b09c3l</lsig><pid>all_channels</pid><thumbnail></thumbnail><metadata><![CDATA[]]></metadata></message>
|
56
|
+
<kewego_request>
|
57
|
+
<url><![CDATA[http://api.kewego.com/channelList/getDetails/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&lsig=327982b09c3l]]></url>
|
58
|
+
<get>
|
59
|
+
<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8]]></appToken>
|
60
|
+
<lsig><![CDATA[327982b09c3l]]></lsig>
|
61
|
+
</get>
|
62
|
+
<post/>
|
63
|
+
<file/>
|
64
|
+
</kewego_request>
|
65
|
+
<KqId>4e41420596d22</KqId>
|
66
|
+
</kewego_response>
|
67
|
+
|
68
|
+
http_version: "1.1"
|
@@ -0,0 +1,115 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Fri, 12 Aug 2011 14:25:36 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0</appToken></message>
|
27
|
+
<KqId>4e4537e07452c</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Fri, 12 Aug 2011 14:25:37 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<kewego_response>
|
55
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0</appToken></message>
|
56
|
+
<KqId>4e4537e10bcbf</KqId>
|
57
|
+
</kewego_response>
|
58
|
+
|
59
|
+
http_version: "1.1"
|
60
|
+
- !ruby/struct:VCR::HTTPInteraction
|
61
|
+
request: !ruby/struct:VCR::Request
|
62
|
+
method: :get
|
63
|
+
uri: http://api.kewego.com:80/upload/getAvailableCategories?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0
|
64
|
+
body:
|
65
|
+
headers:
|
66
|
+
response: !ruby/struct:VCR::Response
|
67
|
+
status: !ruby/struct:VCR::ResponseStatus
|
68
|
+
code: 301
|
69
|
+
message: Moved Permanently
|
70
|
+
headers:
|
71
|
+
location:
|
72
|
+
- http://api.kewego.com/upload/getAvailableCategories/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0
|
73
|
+
server:
|
74
|
+
- lighttpd
|
75
|
+
date:
|
76
|
+
- Fri, 12 Aug 2011 14:25:37 GMT
|
77
|
+
content-length:
|
78
|
+
- "0"
|
79
|
+
body:
|
80
|
+
http_version: "1.1"
|
81
|
+
- !ruby/struct:VCR::HTTPInteraction
|
82
|
+
request: !ruby/struct:VCR::Request
|
83
|
+
method: :get
|
84
|
+
uri: http://api.kewego.com:80/upload/getAvailableCategories/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0
|
85
|
+
body:
|
86
|
+
headers:
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
expires:
|
93
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
94
|
+
content-type:
|
95
|
+
- text/html; charset=utf-8
|
96
|
+
server:
|
97
|
+
- lighttpd
|
98
|
+
date:
|
99
|
+
- Fri, 12 Aug 2011 14:25:38 GMT
|
100
|
+
transfer-encoding:
|
101
|
+
- chunked
|
102
|
+
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
|
103
|
+
<kewego_response>\n\
|
104
|
+
\t<message><categories><category><![CDATA[Actualidades]]></category><category><![CDATA[Animales]]></category><category><![CDATA[Arte]]></category><category><![CDATA[Autom\xC3\xB3vil]]></category><category><![CDATA[Aviaci\xC3\xB3n]]></category><category><![CDATA[Cine, teatro]]></category><category><![CDATA[Dibujos animados]]></category><category><![CDATA[Econom\xC3\xADa]]></category><category><![CDATA[Educaci\xC3\xB3n]]></category><category><![CDATA[Gastronom\xC3\xADa, Cocina]]></category><category><![CDATA[Historia]]></category><category><![CDATA[Humor]]></category><category><![CDATA[Inform\xC3\xA1tica, Internet]]></category><category><![CDATA[Juegos]]></category><category><![CDATA[Moda]]></category><category><![CDATA[M\xC3\xBAsica]]></category><category><![CDATA[People]]></category><category><![CDATA[Peque\xC3\xB1os anuncios]]></category><category><![CDATA[Publicidad]]></category><category><![CDATA[Salud]]></category><category><![CDATA[Ciencias]]></category><category><![CDATA[Deporte]]></category><category><![CDATA[Televisi\xC3\xB3n]]></category><category><![CDATA[Viajes]]></category></categories></message>\n\
|
105
|
+
\t<kewego_request>\n\
|
106
|
+
\t\t<url><![CDATA[http://api.kewego.com/upload/getAvailableCategories/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0]]></url>\n\
|
107
|
+
\t\t<get>\n\
|
108
|
+
\t\t\t<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac5597ddbb12ab78f17e4635ba421f47b5a0]]></appToken>\n\
|
109
|
+
\t\t</get>\n\
|
110
|
+
\t\t<post/>\n\
|
111
|
+
\t\t<file/>\n\
|
112
|
+
\t</kewego_request>\n\
|
113
|
+
\t<KqId>4e4537e2328e1</KqId>\n\
|
114
|
+
</kewego_response>\n"
|
115
|
+
http_version: "1.1"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api.kewego.com:80/app/getToken/?appKey=d4c804fd0f42533351aca404313d26eb
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
expires:
|
14
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
15
|
+
content-type:
|
16
|
+
- text/html; charset=utf-8
|
17
|
+
server:
|
18
|
+
- lighttpd
|
19
|
+
date:
|
20
|
+
- Tue, 09 Aug 2011 14:19:50 GMT
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
body: |
|
24
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
25
|
+
<kewego_response>
|
26
|
+
<message><appToken>34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8</appToken></message>
|
27
|
+
<KqId>4e4142068cdc3</KqId>
|
28
|
+
</kewego_response>
|
29
|
+
|
30
|
+
http_version: "1.1"
|
31
|
+
- !ruby/struct:VCR::HTTPInteraction
|
32
|
+
request: !ruby/struct:VCR::Request
|
33
|
+
method: :get
|
34
|
+
uri: http://api.kewego.com:80/video/getDetails/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&fullDetails=false&sig=iLyROoaf22Mr
|
35
|
+
body:
|
36
|
+
headers:
|
37
|
+
response: !ruby/struct:VCR::Response
|
38
|
+
status: !ruby/struct:VCR::ResponseStatus
|
39
|
+
code: 200
|
40
|
+
message: OK
|
41
|
+
headers:
|
42
|
+
expires:
|
43
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
44
|
+
content-type:
|
45
|
+
- text/html; charset=utf-8
|
46
|
+
server:
|
47
|
+
- lighttpd
|
48
|
+
date:
|
49
|
+
- Tue, 09 Aug 2011 14:19:51 GMT
|
50
|
+
transfer-encoding:
|
51
|
+
- chunked
|
52
|
+
body: |
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<kewego_response>
|
55
|
+
<message><ratio>1.7778</ratio><default_display_subtitle>none</default_display_subtitle><available_subtitles>available_subtitle</available_subtitles><slideAvailable>no</slideAvailable><chapterAvailable>no</chapterAvailable><title><![CDATA[Entrevista Ceos CharHadas]]></title><description><![CDATA[<p>bmv jhgvjhgcvjgfcgvcj</p>]]></description><author>anacharhadas</author><views>16</views><duration>221</duration><rate>0</rate><rating_count>0</rating_count><comments>0</comments><language>es</language><country>es</country><postal_code>28023</postal_code><production_date>0000-00-00 00:00:00</production_date><audience_classification>all_public</audience_classification><categories><category><![CDATA[Actualidades]]></category></categories><publication_date>2011-07-06 13:26:20</publication_date><access>public</access><keywords><keyword><![CDATA[entrevista]]></keyword><keyword><![CDATA[ceos]]></keyword><keyword><![CDATA[socias]]></keyword></keywords><available_formats><format>ipadHQ</format><format>iphone</format><format>iphone3G</format><format alias="sd">normal</format><format>old</format><format>slides</format></available_formats><default_format>sd</default_format><videoblog_link></videoblog_link><broadcast_start_date>2011-07-06 13:26:20</broadcast_start_date><broadcast_end_date>2037-12-31 23:59:59</broadcast_end_date><pid><![CDATA[]]></pid><thumbnails><small><url><![CDATA[http://tll.kewego.com/t/0/0071/74x54_iLyROoaf22Mr_1.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/74x54_iLyROoaf22Mr_2.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/74x54_iLyROoaf22Mr_3.jpg]]></url></small><medium><url><![CDATA[http://tll.kewego.com/t/0/0071/154x114_iLyROoaf22Mr_1.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/154x114_iLyROoaf22Mr_2.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/154x114_iLyROoaf22Mr_3.jpg]]></url></medium><large><url><![CDATA[http://tll.kewego.com/t/0/0071/400x300_iLyROoaf22Mr_1.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/400x300_iLyROoaf22Mr_2.jpg]]></url><url><![CDATA[http://tll.kewego.com/t/0/0071/400x300_iLyROoaf22Mr_3.jpg]]></url></large></thumbnails><metadata><![CDATA[]]></metadata></message>
|
56
|
+
<kewego_request>
|
57
|
+
<url><![CDATA[http://api.kewego.com/video/getDetails/?appToken=34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8&fullDetails=false&sig=iLyROoaf22Mr]]></url>
|
58
|
+
<get>
|
59
|
+
<appToken><![CDATA[34b54efcb338fb42a12f479ae493780f3c2b234a4b0188fb8f2a3ba2af3806d038f2471459ae851bab977f09a466ac55ef6dc2b9eff6ab184f6f0356822113a8]]></appToken>
|
60
|
+
<fullDetails><![CDATA[false]]></fullDetails>
|
61
|
+
<sig><![CDATA[iLyROoaf22Mr]]></sig>
|
62
|
+
</get>
|
63
|
+
<post/>
|
64
|
+
<file/>
|
65
|
+
</kewego_request>
|
66
|
+
<KqId>4e4142072f943</KqId>
|
67
|
+
</kewego_response>
|
68
|
+
|
69
|
+
http_version: "1.1"
|