taskrabbit 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/taskrabbit/task.rb +13 -3
- data/lib/taskrabbit/version.rb +1 -1
- data/spec/support/cassettes/account/tasks.yml +152 -45
- data/spec/support/cassettes/errors/404.yml +35 -0
- data/spec/support/cassettes/tasks/all.yml +159 -21
- data/spec/support/cassettes/tasks/find.yml +44 -0
- data/spec/support/cassettes/tasks/properties.yml +19 -21
- data/spec/support/cassettes/tasks/save.yml +73 -50
- data/spec/support/cassettes/tasks/update.yml +77 -51
- data/spec/support/cassettes/tasks/with_offers_properties.yml +24 -19
- data/spec/support/cassettes/tasks/without_client.yml +35 -0
- data/spec/support/cassettes/users/tasks/all.yml +42 -20
- data/spec/taskrabbit/offer_spec.rb +1 -1
- data/spec/taskrabbit/task_spec.rb +4 -2
- data/spec/taskrabbit/user_spec.rb +1 -1
- metadata +3 -3
@@ -45,3 +45,47 @@
|
|
45
45
|
unassigned, Task will expire on"},{"value":1347663600,"key":"complete_by_time","title":"Task
|
46
46
|
should be completed by"}],"state":"opened"}'
|
47
47
|
http_version: '1.1'
|
48
|
+
- !ruby/struct:VCR::HTTPInteraction
|
49
|
+
request: !ruby/struct:VCR::Request
|
50
|
+
method: :get
|
51
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=geography_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
|
52
|
+
body:
|
53
|
+
headers:
|
54
|
+
x-client-application:
|
55
|
+
- <API_SECRET>
|
56
|
+
authorization:
|
57
|
+
- OAuth
|
58
|
+
response: !ruby/struct:VCR::Response
|
59
|
+
status: !ruby/struct:VCR::ResponseStatus
|
60
|
+
code: 200
|
61
|
+
message: OK
|
62
|
+
headers:
|
63
|
+
server:
|
64
|
+
- nginx/1.0.11
|
65
|
+
date:
|
66
|
+
- Fri, 12 Oct 2012 06:48:21 GMT
|
67
|
+
content-type:
|
68
|
+
- application/json; charset=utf-8
|
69
|
+
status:
|
70
|
+
- 200 OK
|
71
|
+
etag:
|
72
|
+
- ! '"113afdc7a5baebcef5c807c002535ed0"'
|
73
|
+
cache-control:
|
74
|
+
- max-age=0, private, must-revalidate
|
75
|
+
x-runtime:
|
76
|
+
- '0.081255'
|
77
|
+
x-ua-compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
strict-transport-security:
|
80
|
+
- max-age=31536000
|
81
|
+
content-length:
|
82
|
+
- '1171'
|
83
|
+
body: ! '{"user":{"id":40,"short_name":"UserWith","display_name":"UserWith c.","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
84
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"full_name":"UserWith c.","links":{"avatar_url":"http://s-app1.taskrabbit.com/images/default_avatars/poster_thumb.png","get":"/api/v1/users/40"},"friend_code_url":"http://taskrabbit.com/PAL/40"},"id":52,"location_visits":{"items":[{"zip":"94102","address":"Powell
|
85
|
+
Street, San Francisco, CA","approximate_radius":0.5,"lng":-122.4054037525,"lat":37.7861750088,"complete":"Powell
|
86
|
+
Street, San Francisco, CA, San Francisco, CA 94102","city":"San Francisco","name":"Home","state":"CA","partial":"Powell
|
87
|
+
Street, San Francisco, CA, San Francisco, CA 94102"}]},"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1347577200,"state_label":"posted","description":"I
|
88
|
+
need to clean my house","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
89
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1347490579,"name":"House
|
90
|
+
Cleaning","state":"opened","complete_by_time":1347663600,"links":{"html":"http://s-app1.taskrabbit.com/tasks/house-cleaning-7091","get":"/api/v1/tasks/52"}}'
|
91
|
+
http_version: '1.1'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: https://taskrabbitdev.com/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=
|
5
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=geography_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
x-client-application:
|
@@ -17,31 +17,29 @@
|
|
17
17
|
server:
|
18
18
|
- nginx/1.0.11
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Fri, 12 Oct 2012 06:48:20 GMT
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
status:
|
24
24
|
- 200 OK
|
25
|
-
x-runtime:
|
26
|
-
- '0.152650'
|
27
|
-
content-length:
|
28
|
-
- '1417'
|
29
25
|
etag:
|
30
|
-
- ! '"
|
31
|
-
x-ua-compatible:
|
32
|
-
- IE=Edge,chrome=1
|
26
|
+
- ! '"113afdc7a5baebcef5c807c002535ed0"'
|
33
27
|
cache-control:
|
34
28
|
- max-age=0, private, must-revalidate
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
29
|
+
x-runtime:
|
30
|
+
- '0.099208'
|
31
|
+
x-ua-compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
strict-transport-security:
|
34
|
+
- max-age=31536000
|
35
|
+
content-length:
|
36
|
+
- '1171'
|
37
|
+
body: ! '{"user":{"id":40,"short_name":"UserWith","display_name":"UserWith c.","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
38
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"full_name":"UserWith c.","links":{"avatar_url":"http://s-app1.taskrabbit.com/images/default_avatars/poster_thumb.png","get":"/api/v1/users/40"},"friend_code_url":"http://taskrabbit.com/PAL/40"},"id":52,"location_visits":{"items":[{"zip":"94102","address":"Powell
|
39
|
+
Street, San Francisco, CA","approximate_radius":0.5,"lng":-122.4054037525,"lat":37.7861750088,"complete":"Powell
|
40
|
+
Street, San Francisco, CA, San Francisco, CA 94102","city":"San Francisco","name":"Home","state":"CA","partial":"Powell
|
41
|
+
Street, San Francisco, CA, San Francisco, CA 94102"}]},"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1347577200,"state_label":"posted","description":"I
|
42
|
+
need to clean my house","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
43
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1347490579,"name":"House
|
44
|
+
Cleaning","state":"opened","complete_by_time":1347663600,"links":{"html":"http://s-app1.taskrabbit.com/tasks/house-cleaning-7091","get":"/api/v1/tasks/52"}}'
|
47
45
|
http_version: '1.1'
|
@@ -1,63 +1,86 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: https://taskrabbitdev.com/api/v1/tasks?
|
6
|
-
body: task[name]=My%20First%20Task&task[named_price]=20&task[
|
7
|
-
headers:
|
8
|
-
x-client-application:
|
5
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks?
|
6
|
+
body: task[description]=&task[private_description]=&task[private_runner]=false&task[virtual]=false&task[name]=My%20First%20Task&task[named_price]=20&task[geography_id]=4
|
7
|
+
headers:
|
8
|
+
x-client-application:
|
9
9
|
- <API_SECRET>
|
10
|
-
authorization:
|
10
|
+
authorization:
|
11
11
|
- OAuth <USER_WITH_CARD>
|
12
|
-
response: !ruby/struct:VCR::Response
|
13
|
-
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
14
|
code: 200
|
15
15
|
message: OK
|
16
|
-
headers:
|
17
|
-
|
18
|
-
-
|
19
|
-
|
16
|
+
headers:
|
17
|
+
server:
|
18
|
+
- nginx/1.0.11
|
19
|
+
date:
|
20
|
+
- Fri, 12 Oct 2012 06:50:51 GMT
|
21
|
+
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
23
|
+
status:
|
24
|
+
- 200 OK
|
25
|
+
etag:
|
26
|
+
- ! '"9e056879e573f4e359fab517bb401b3c"'
|
27
|
+
cache-control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
set-cookie:
|
30
|
+
- current_geo=1053; path=/; expires=Wed, 12-Dec-2012 07:50:50 GMT; secure
|
31
|
+
x-runtime:
|
32
|
+
- '0.446353'
|
33
|
+
x-ua-compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
strict-transport-security:
|
36
|
+
- max-age=31536000
|
37
|
+
content-length:
|
38
|
+
- '1038'
|
39
|
+
body: ! '{"charge_price":20,"id":142,"named_price":20,"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1350151200,"assignment_type":"auto","description_properties":[{"value":"","title":"Description","key":"description"},{"value":"","title":"Private
|
40
|
+
description","key":"private_description"},{"value":1350151200,"title":"If unassigned,
|
41
|
+
Task will expire on","key":"assign_by_time"},{"value":1350237600,"title":"Task
|
42
|
+
should be completed by","key":"complete_by_time"}],"state_label":"posted","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
43
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1350024650,"name":"My
|
44
|
+
First Task","state":"opened","private_runner":false,"complete_by_time":1350237600,"runner_fee":0,"links":{"put":"/api/v1/tasks/142","html":"http://s-app1.taskrabbit.com/tasks/my-first-task--16","get":"/api/v1/tasks/142","authenticated":"http://s-app1.taskrabbit.com/go/0cac931143e6c5d187b614558664b7b57989847b9d14658861928639edb4ce4f63687d762e68b12a8f51272dbfe47c5f0bc3","delete":"/api/v1/tasks/142"}}'
|
45
|
+
http_version: '1.1'
|
46
|
+
- !ruby/struct:VCR::HTTPInteraction
|
47
|
+
request: !ruby/struct:VCR::Request
|
35
48
|
method: :get
|
36
|
-
uri: https://taskrabbitdev.com/api/v1/tasks/
|
49
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks/142?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=geography_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
|
37
50
|
body:
|
38
|
-
headers:
|
39
|
-
x-client-application:
|
51
|
+
headers:
|
52
|
+
x-client-application:
|
40
53
|
- <API_SECRET>
|
41
|
-
authorization:
|
54
|
+
authorization:
|
42
55
|
- OAuth <USER_WITH_CARD>
|
43
|
-
response: !ruby/struct:VCR::Response
|
44
|
-
status: !ruby/struct:VCR::ResponseStatus
|
56
|
+
response: !ruby/struct:VCR::Response
|
57
|
+
status: !ruby/struct:VCR::ResponseStatus
|
45
58
|
code: 200
|
46
59
|
message: OK
|
47
|
-
headers:
|
48
|
-
|
49
|
-
-
|
50
|
-
|
60
|
+
headers:
|
61
|
+
server:
|
62
|
+
- nginx/1.0.11
|
63
|
+
date:
|
64
|
+
- Fri, 12 Oct 2012 06:50:51 GMT
|
65
|
+
content-type:
|
51
66
|
- application/json; charset=utf-8
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
57
|
-
-
|
58
|
-
|
59
|
-
-
|
60
|
-
|
61
|
-
-
|
62
|
-
|
63
|
-
|
67
|
+
status:
|
68
|
+
- 200 OK
|
69
|
+
etag:
|
70
|
+
- ! '"42735da7ee4768cc1b0b3d64b3eb8fe5"'
|
71
|
+
cache-control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
set-cookie:
|
74
|
+
- current_geo=1053; path=/; expires=Wed, 12-Dec-2012 07:50:51 GMT; secure
|
75
|
+
x-runtime:
|
76
|
+
- '0.158178'
|
77
|
+
x-ua-compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
strict-transport-security:
|
80
|
+
- max-age=31536000
|
81
|
+
content-length:
|
82
|
+
- '728'
|
83
|
+
body: ! '{"charge_price":20,"id":142,"named_price":20,"location_visits":{"items":[]},"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1350151200,"assignment_type":"auto","state_label":"posted","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
84
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1350024650,"name":"My
|
85
|
+
First Task","state":"opened","private_runner":false,"complete_by_time":1350237600,"links":{"put":"/api/v1/tasks/142","html":"http://s-app1.taskrabbit.com/tasks/my-first-task--16","get":"/api/v1/tasks/142","authenticated":"http://s-app1.taskrabbit.com/go/0cac931143e6c5d187b614558664b7b57989847b9d14658861928639edb4ce4f63687d762e68b12a8f51272dbfe47c5f0bc3","delete":"/api/v1/tasks/142"}}'
|
86
|
+
http_version: '1.1'
|
@@ -1,63 +1,89 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: https://taskrabbitdev.com/api/v1/tasks?
|
6
|
-
body: task[name]=My%20First%20Task&task[named_price]=20&task[
|
7
|
-
headers:
|
8
|
-
x-client-application:
|
5
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks?
|
6
|
+
body: task[description]=&task[private_description]=&task[private_runner]=false&task[virtual]=false&task[name]=My%20First%20Task&task[named_price]=20&task[geography_id]=4
|
7
|
+
headers:
|
8
|
+
x-client-application:
|
9
9
|
- <API_SECRET>
|
10
|
-
authorization:
|
10
|
+
authorization:
|
11
11
|
- OAuth <USER_WITH_CARD>
|
12
|
-
response: !ruby/struct:VCR::Response
|
13
|
-
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
14
|
code: 200
|
15
15
|
message: OK
|
16
|
-
headers:
|
17
|
-
|
18
|
-
-
|
19
|
-
|
16
|
+
headers:
|
17
|
+
server:
|
18
|
+
- nginx/1.0.11
|
19
|
+
date:
|
20
|
+
- Fri, 12 Oct 2012 06:51:03 GMT
|
21
|
+
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
23
|
+
status:
|
24
|
+
- 200 OK
|
25
|
+
etag:
|
26
|
+
- ! '"62aa2b40958e5d7c6ba7987a552f3126"'
|
27
|
+
cache-control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
set-cookie:
|
30
|
+
- current_geo=1053; path=/; expires=Wed, 12-Dec-2012 07:51:03 GMT; secure
|
31
|
+
x-runtime:
|
32
|
+
- '0.435780'
|
33
|
+
x-ua-compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
strict-transport-security:
|
36
|
+
- max-age=31536000
|
37
|
+
content-length:
|
38
|
+
- '1038'
|
39
|
+
body: ! '{"charge_price":20,"id":143,"named_price":20,"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1350151200,"assignment_type":"auto","description_properties":[{"value":"","title":"Description","key":"description"},{"value":"","title":"Private
|
40
|
+
description","key":"private_description"},{"value":1350151200,"title":"If unassigned,
|
41
|
+
Task will expire on","key":"assign_by_time"},{"value":1350237600,"title":"Task
|
42
|
+
should be completed by","key":"complete_by_time"}],"state_label":"posted","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
43
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1350024663,"name":"My
|
44
|
+
First Task","state":"opened","private_runner":false,"complete_by_time":1350237600,"runner_fee":0,"links":{"put":"/api/v1/tasks/143","html":"http://s-app1.taskrabbit.com/tasks/my-first-task--17","get":"/api/v1/tasks/143","authenticated":"http://s-app1.taskrabbit.com/go/16efc3604f4d592ae53b449187179fb829a8341090382ca5a7007f5fdac6a44e73b296d29f98824a5f8e7bff3b7772d9da3e","delete":"/api/v1/tasks/143"}}'
|
45
|
+
http_version: '1.1'
|
46
|
+
- !ruby/struct:VCR::HTTPInteraction
|
47
|
+
request: !ruby/struct:VCR::Request
|
35
48
|
method: :put
|
36
|
-
uri: https://taskrabbitdev.com/api/v1/tasks/
|
37
|
-
body: name=New%20Name
|
38
|
-
headers:
|
39
|
-
x-client-application:
|
49
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks/143?
|
50
|
+
body: description=&private_description=&private_runner=false&virtual=false&id=143&name=New%20Name
|
51
|
+
headers:
|
52
|
+
x-client-application:
|
40
53
|
- <API_SECRET>
|
41
|
-
authorization:
|
54
|
+
authorization:
|
42
55
|
- OAuth <USER_WITH_CARD>
|
43
|
-
response: !ruby/struct:VCR::Response
|
44
|
-
status: !ruby/struct:VCR::ResponseStatus
|
56
|
+
response: !ruby/struct:VCR::Response
|
57
|
+
status: !ruby/struct:VCR::ResponseStatus
|
45
58
|
code: 200
|
46
59
|
message: OK
|
47
|
-
headers:
|
48
|
-
|
49
|
-
-
|
50
|
-
|
60
|
+
headers:
|
61
|
+
server:
|
62
|
+
- nginx/1.0.11
|
63
|
+
date:
|
64
|
+
- Fri, 12 Oct 2012 06:51:04 GMT
|
65
|
+
content-type:
|
51
66
|
- application/json; charset=utf-8
|
52
|
-
|
53
|
-
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
57
|
-
-
|
58
|
-
|
59
|
-
-
|
60
|
-
|
61
|
-
-
|
62
|
-
|
63
|
-
|
67
|
+
status:
|
68
|
+
- 200 OK
|
69
|
+
etag:
|
70
|
+
- ! '"88da9728a352281ecfbf3f2e9de776f5"'
|
71
|
+
cache-control:
|
72
|
+
- max-age=0, private, must-revalidate
|
73
|
+
set-cookie:
|
74
|
+
- current_geo=1053; path=/; expires=Wed, 12-Dec-2012 07:51:04 GMT; secure
|
75
|
+
x-runtime:
|
76
|
+
- '0.485258'
|
77
|
+
x-ua-compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
strict-transport-security:
|
80
|
+
- max-age=31536000
|
81
|
+
content-length:
|
82
|
+
- '1024'
|
83
|
+
body: ! '{"charge_price":20,"id":143,"named_price":20,"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1350151200,"assignment_type":"auto","description_properties":[{"value":"","title":"Description","key":"description"},{"value":"","title":"Private
|
84
|
+
description","key":"private_description"},{"value":1350151200,"title":"If unassigned,
|
85
|
+
Task will expire on","key":"assign_by_time"},{"value":1350237600,"title":"Task
|
86
|
+
should be completed by","key":"complete_by_time"}],"state_label":"posted","city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
87
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1350024663,"name":"New
|
88
|
+
Name","state":"opened","private_runner":false,"complete_by_time":1350237600,"runner_fee":0,"links":{"put":"/api/v1/tasks/143","html":"http://s-app1.taskrabbit.com/tasks/new-name","get":"/api/v1/tasks/143","authenticated":"http://s-app1.taskrabbit.com/go/de977e86f3919b5c68143b8f921a2967beceb73b280a98bcd300ae33c1aca34d4688974006489b6e48eeea61fa64847b8342","delete":"/api/v1/tasks/143"}}'
|
89
|
+
http_version: '1.1'
|
@@ -2,11 +2,11 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=
|
5
|
+
uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=geography_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
x-client-application:
|
9
|
-
-
|
9
|
+
- <API_SECRET>
|
10
10
|
authorization:
|
11
11
|
- OAuth <USER_WITH_CARD>
|
12
12
|
response: !ruby/struct:VCR::Response
|
@@ -17,29 +17,34 @@
|
|
17
17
|
server:
|
18
18
|
- nginx/1.0.11
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Fri, 12 Oct 2012 06:46:47 GMT
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
status:
|
24
24
|
- 200 OK
|
25
|
+
etag:
|
26
|
+
- ! '"89723b9588a3437174afd3e3613e01cb"'
|
27
|
+
cache-control:
|
28
|
+
- max-age=0, private, must-revalidate
|
25
29
|
set-cookie:
|
26
|
-
- current_geo=1053; path=/; expires=
|
30
|
+
- current_geo=1053; path=/; expires=Wed, 12-Dec-2012 07:46:47 GMT; secure
|
27
31
|
x-runtime:
|
28
|
-
- '0.
|
29
|
-
content-length:
|
30
|
-
- '1245'
|
31
|
-
etag:
|
32
|
-
- ! '"1bb05d4c694e2dc4ee9b37e66b3175ba"'
|
32
|
+
- '0.288597'
|
33
33
|
x-ua-compatible:
|
34
34
|
- IE=Edge,chrome=1
|
35
|
-
|
36
|
-
- max-age=
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
Powell Street, San Francisco, CA, San Francisco, CA 94102","partial":"Powell
|
42
|
-
Street, San Francisco, CA, San Francisco, CA 94102","
|
43
|
-
|
44
|
-
|
35
|
+
strict-transport-security:
|
36
|
+
- max-age=31536000
|
37
|
+
content-length:
|
38
|
+
- '1719'
|
39
|
+
body: ! '{"charge_price":0,"id":52,"location_visits":{"items":[{"id":11,"zip":"94102","address":"213
|
40
|
+
Powell Street, San Francisco, CA","approximate_radius":0,"lng":-122.4080542,"lat":37.7867363,"complete":"213
|
41
|
+
Powell Street, San Francisco, CA, San Francisco, CA 94102","city":"San Francisco","name":"Home","state":"CA","location_id":52,"partial":"Powell
|
42
|
+
Street, San Francisco, CA, San Francisco, CA 94102"}]},"runners":{"items":[]},"cost_in_cents":0,"assign_by_time":1347577200,"assignment_type":"review","state_label":"posted","description":"I
|
43
|
+
need to clean my house","offers":{"items":[{"id":7,"charge_price":26,"runner_id":32,"state":"sent","runner":{"id":32,"short_name":"John","runner_level":1,"display_name":"John
|
44
|
+
R.","city":{"id":1060,"lng":-74.005973,"lat":40.714353,"name":"New York City","links":{"get":"/api/v1/cities/4"}},"mobile_phone":"856
|
45
|
+
938 6494","runner":true,"email":"fancyrabbit@example.com","full_name":"John
|
46
|
+
R.","friend_code_url":"http://taskrabbit.com/PAL/32","links":{"get":"/api/v1/users/32","avatar_url":"http://s-app1.taskrabbit.com/images/default_avatars/runner_thumb.png"}},"created_at":1347493865,"comments":"I
|
47
|
+
clean a lot!"}]},"city":{"id":1053,"lng":-122.419416,"lat":37.77493,"name":"SF
|
48
|
+
Bay Area","links":{"get":"/api/v1/cities/3"}},"state_changed_at":1347490579,"name":"House
|
49
|
+
Cleaning","state":"opened","private_runner":false,"complete_by_time":1347663600,"links":{"put":"/api/v1/tasks/52","html":"http://s-app1.taskrabbit.com/tasks/house-cleaning-7091","offers":"/api/v1/tasks/52/offers","get":"/api/v1/tasks/52","authenticated":"http://s-app1.taskrabbit.com/go/82d359e524666a2d8b96f6df1fbfcad4a720a0b4fed8c3f0985139a13a4d6433b65f7f05e80360af131d8f9638f8307e035b","delete":"/api/v1/tasks/52"}}'
|
45
50
|
http_version: '1.1'
|