jarvis-cli 0.0.7 → 0.1.0
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/jarvis.rb +19 -2
- data/lib/jarvis/exceptions.rb +2 -3
- data/lib/jarvis/server.rb +2 -0
- data/lib/jarvis/services.rb +1 -0
- data/lib/jarvis/services/img_flip.rb +69 -0
- data/lib/jarvis/services/img_flip_memes/afraid_to_ask.rb +17 -0
- data/lib/jarvis/services/img_flip_memes/and_its_gone.rb +17 -0
- data/lib/jarvis/services/img_flip_memes/base_meme.rb +57 -0
- data/lib/jarvis/services/img_flip_memes/everywhere.rb +15 -0
- data/lib/jarvis/services/img_flip_memes/gonna_have_a_bad_time.rb +17 -0
- data/lib/jarvis/services/img_flip_memes/most_interesting_man.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/not_sure_if.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/one_does_not_simply.rb +17 -0
- data/lib/jarvis/services/img_flip_memes/overly_attached_girlfriend.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/picard.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/success_kid.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/sudden_clarity.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/what_if_i_told_you.rb +17 -0
- data/lib/jarvis/services/img_flip_memes/willy_wonka.rb +13 -0
- data/lib/jarvis/services/img_flip_memes/y_u_no.rb +17 -0
- data/lib/jarvis/version.rb +1 -1
- data/spec/services/img_flip_spec.rb +89 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_afraid_to_ask.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_and_its_gone.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_everywhere.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_gonna_have_a_bad_time.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_most_interesting_man.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_not_sure_if.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_one_does_not_simply.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_overly_attached_girlfriend.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_picard.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_success_kid.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_sudden_clarity.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_what_if_I_told_you.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_willy_wonka.yml +54 -0
- data/spec/support/fixtures/vcr_cassettes/img_flip_y_u_no.yml +54 -0
- metadata +48 -2
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=24557067&username=imgflip_user&password=imgflip_password&text0=%2C%20I'm%20not%20sure%20how%20to%20mock%20third%20party%20apis%2C&text1=And%20at%20this%20point%2C%20I'm%20afraid%20to%20ask
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Sun, 22 Feb 2015 19:52:46 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=6c4d055788bedf067741a1e18c2f8826; path=/
|
33
|
+
- __cfduid=def929d205d4dfb47e596f3b7110123021424634766; expires=Mon, 22-Feb-16
|
34
|
+
19:52:46 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=0B5Wd2oc4CkTudRiykCuXq9mkr2QrxW3; expires=Sun, 22-Feb-2015 21:52:46
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bcdb9d909a610db-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hza6u.jpg","page_url":"https:\/\/imgflip.com\/i\/hza6u"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 22 Feb 2015 19:52:46 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=766986&username=imgflip_user&password=imgflip_password&text0=you%20have%20some%20services%20here%2C&text1=Annnnnnnd%20it's%20gone
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:07:51 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=ad47d111acfb04728fe6c39ecbf751bc; path=/
|
33
|
+
- __cfduid=d6a86161a43f0ed77eb6a24353e9169d71424657269; expires=Tue, 23-Feb-16
|
34
|
+
02:07:49 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=KppsjdFgSz8HbeoR1SZYWlg0GfRRvgmH; expires=Mon, 23-Feb-2015 04:07:50
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bcfdf4060af041e-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzqv7.jpg","page_url":"https:\/\/imgflip.com\/i\/hzqv7"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:07:51 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=347390&username=imgflip_user&password=imgflip_password&text0=tests&text1=tests%20everywhere
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:14:31 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=046c699b7b011c9f282428c77fe1f0da; path=/
|
33
|
+
- __cfduid=db5221cce6e59c258df512319d23046521424657671; expires=Tue, 23-Feb-16
|
34
|
+
02:14:31 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=uxdEMz3jfOpGZzQfCOTWImLnbxJcfes5; expires=Mon, 23-Feb-2015 04:14:31
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bcfe90cf5850168-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzr5m.jpg","page_url":"https:\/\/imgflip.com\/i\/hzr5m"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:14:31 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=100951&username=imgflip_user&password=imgflip_password&text0=if%20you%20mock%20when%20you%20should%20use%20a%20real%20object%2C&text1=You're%20gonna%20have%20a%20bad%20time
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:19:25 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=bf759a702b2d43b735a5845a59cc5ec4; path=/
|
33
|
+
- __cfduid=d6dc0cd03a7643ae16b261d0ded2bd29c1424657965; expires=Tue, 23-Feb-16
|
34
|
+
02:19:25 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=jAo4hV_4mE2tFKuB4-rRIIOD9kTXlPTM; expires=Mon, 23-Feb-2015 04:19:24
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bcff03b01cf10e7-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzrd1.jpg","page_url":"https:\/\/imgflip.com\/i\/hzrd1"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:19:25 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=61532&username=imgflip_user&password=imgflip_password&text0=I%20don't%20always%20ci%20my%20code&text1=but%20when%20I%20do%2C%20I%20do%20it%20on%20Travis
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:26:29 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=5d8091395bda29a331448a5639fcb812; path=/
|
33
|
+
- __cfduid=d80052448c6185ecdd7ea055b7d9ef7751424658388; expires=Tue, 23-Feb-16
|
34
|
+
02:26:28 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=AOKxTRomV9PN5fvByWkEq1KYi9HoTV-i; expires=Mon, 23-Feb-2015 04:26:28
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bcffa91227309b8-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzrnq.jpg","page_url":"https:\/\/imgflip.com\/i\/hzrnq"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:26:29 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=61520&username=imgflip_user&password=imgflip_password&text0=Not%20sure%20if%20this%20test%20is%20going%20to%20pass&text1=or%20if%20it's%20gonna%20break%20the%20build
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:34:16 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=019046646da49cd72b4d677087170990; path=/
|
33
|
+
- __cfduid=ddfc8211d525d5af3c8283e5dd20695381424658855; expires=Tue, 23-Feb-16
|
34
|
+
02:34:15 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=c66OFX9q3YLuht_lkb_uXgsnPxKBoVSM; expires=Mon, 23-Feb-2015 04:34:15
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bd005f8a74c10e7-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzrz0.jpg","page_url":"https:\/\/imgflip.com\/i\/hzrz0"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:34:17 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=61579&username=imgflip_user&password=imgflip_password&text0=One%20Does%20Not%20Simply&text1=write%20rspecs
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:38:00 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=38425547e60dd43ac5e2e6d50b4b7d3d; path=/
|
33
|
+
- __cfduid=d7fe0b069b8adcf709901c03cc92a9b371424659080; expires=Tue, 23-Feb-16
|
34
|
+
02:38:00 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=pt5xd4yd0fSDWw49vJwrW_ZaniNZC8uh; expires=Mon, 23-Feb-2015 04:37:59
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bd00b73379e10c3-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzs4e.jpg","page_url":"https:\/\/imgflip.com\/i\/hzs4e"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:38:00 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=100952&username=imgflip_user&password=imgflip_password&text0=I%20looked%20at%20your%20slack%20channel&text1=who%20is%20this%20jarvis%20you%20keep%20talking%20to%3F
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:43:10 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=04edc955186539e8ae4e4b74abcd787c; path=/
|
33
|
+
- __cfduid=d78cf495c8784925ba101d3e00e535e131424659389; expires=Tue, 23-Feb-16
|
34
|
+
02:43:09 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=tNqd8hV9h48Mi9ytMD8momMkJptF4Z9T; expires=Mon, 23-Feb-2015 04:43:09
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bd013014b8b09ac-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzsbu.jpg","page_url":"https:\/\/imgflip.com\/i\/hzsbu"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:43:10 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.imgflip.com/caption_image
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: template_id=245898&username=imgflip_user&password=imgflip_password&text0=why%20the%20fuck&text1=did%20you%20make%20so%20many%20memes%3F
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- cloudflare-nginx
|
23
|
+
Date:
|
24
|
+
- Mon, 23 Feb 2015 02:46:36 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- PHPSESSID=b49c8bc0ae08ad9d584b0d6e7e601d14; path=/
|
33
|
+
- __cfduid=de332a208b43b0ccbf913a72aa09261af1424659595; expires=Tue, 23-Feb-16
|
34
|
+
02:46:35 GMT; path=/; domain=.imgflip.com; HttpOnly
|
35
|
+
- claim_key=BZLEVwSuzcsjHSB-aprqL373ME5e8GW7; expires=Mon, 23-Feb-2015 04:46:35
|
36
|
+
GMT; Max-Age=7200; path=/
|
37
|
+
Cache-Control:
|
38
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
39
|
+
Cf-Railgun:
|
40
|
+
- direct (starting new WAN connection)
|
41
|
+
Expires:
|
42
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
Vary:
|
46
|
+
- User-Agent,Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 1bd01809afd210c3-ORD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"success":true,"data":{"url":"http:\/\/i.imgflip.com\/hzsgd.jpg","page_url":"https:\/\/imgflip.com\/i\/hzsgd"}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 23 Feb 2015 02:46:36 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|