typetalk 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -26
- data/lib/typetalk.rb +1 -1
- data/lib/typetalk/api/auth.rb +3 -3
- data/lib/typetalk/version.rb +1 -1
- data/spec/cassettes/Typetalk_Api/_access_token/should_get_access_token.yml +1 -1
- data/spec/cassettes/Typetalk_Api/_access_token/should_not_update_access_token.yml +1 -1
- data/spec/cassettes/Typetalk_Api/_access_token/should_update_access_token_when_access_token_is_expired.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_authorization_code.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_client_credentials.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_client_credentials_when_scope_changed.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_id_is_wrong.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_secret_is_wrong.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_redirect_uri_mismatch.yml +1 -1
- data/spec/cassettes/Typetalk_Api_Auth/_update_access_token/should_get_the_correct_resource_by_client_credentials.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Auth/_update_access_token/should_raise_error_when_refresh_token_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_correct_resource.yml +6 -6
- data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_correct_resource_till_mention.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_unread_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Mention/_read_mention/should_get_the_correct_resource.yml +4 -4
- data/spec/cassettes/Typetalk_Api_Mention/_read_mention/should_raise_error_when_mention_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_get_message/should_get_the_correct_resource.yml +8 -8
- data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_like_message/should_get_the_correct_resource.yml +7 -7
- data/spec/cassettes/Typetalk_Api_Message/_like_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource.yml +4 -4
- data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_attachments.yml +6 -6
- data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_reply.yml +7 -7
- data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_talks.yml +6 -6
- data/spec/cassettes/Typetalk_Api_Message/_post_message/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_read_message/should_get_the_correct_resource.yml +8 -8
- data/spec/cassettes/Typetalk_Api_Message/_read_message/should_get_the_correct_resource_till_post.yml +8 -8
- data/spec/cassettes/Typetalk_Api_Message/_read_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_remove_message/should_get_the_correct_resource.yml +10 -10
- data/spec/cassettes/Typetalk_Api_Message/_remove_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_unlike_message/should_get_the_correct_resource.yml +9 -9
- data/spec/cassettes/Typetalk_Api_Message/_unlike_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_upload_attachment/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Message/_upload_attachment/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_get_the_correct_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_raise_error_when_invite_team_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_raise_error_when_team_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_get_the_correct_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_raise_error_when_invite_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_get_the_correct_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_raise_error_when_invite_team_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_raise_error_when_team_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_get_the_correct_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_raise_error_when_invite_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_get_notifications/should_get_the_correct_resource.yml +12 -12
- data/spec/cassettes/Typetalk_Api_Notification/_get_notifications_status/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Notification/_read_notifications/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_favorite_topic/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_favorite_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_backward_resource.yml +7 -7
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_forward_resource.yml +5 -5
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_resource.yml +10 -10
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic_members/should_get_the_correct_resource.yml +3 -3
- data/spec/cassettes/Typetalk_Api_Topic/_get_topic_members/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_get_topics/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_unfavorite_topic/should_get_the_correct_resource.yml +2 -2
- data/spec/cassettes/Typetalk_Api_Topic/_unfavorite_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_User/_get_profile/should_get_the_correct_resource.yml +3 -3
- data/spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_access_token_is_wrong.yml +2 -2
- data/spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_scope_is_wrong.yml +2 -2
- data/spec/typetalk/api/auth_spec.rb +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Fri, 16 May 2014 10:27:40 GMT
|
40
40
|
- request:
|
41
41
|
method: put
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/mentions/36069?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -75,9 +75,9 @@ http_interactions:
|
|
75
75
|
- max-age=2592000
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '{"mention":{"id":36069,"readAt":"2014-05-16T10:27:37Z","post":{"updatedAt":"2014-05-16T10:02:20Z","replyTo":null,"url":"https://typetalk.
|
78
|
+
string: '{"mention":{"id":36069,"readAt":"2014-05-16T10:27:37Z","post":{"updatedAt":"2014-05-16T10:02:20Z","replyTo":null,"url":"https://typetalk.com/topics/5147/posts/280469","id":280469,"createdAt":"2014-05-16T10:02:20Z","message":"Test
|
79
79
|
Message 1 - 4 @typetalk-rubygem-tester ","topic":{"name":"Test Topic 1","updatedAt":"2014-05-15T07:50:13Z","description":null,"id":5147,"lastPostedAt":"2014-05-16T10:02:20Z","createdAt":"2014-05-15T07:44:56Z","suggestion":"Test
|
80
|
-
Topic 1"},"account":{"name":"umakoz","updatedAt":"2014-05-16T09:59:47Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
80
|
+
Topic 1"},"account":{"name":"umakoz","updatedAt":"2014-05-16T09:59:47Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}}}'
|
81
81
|
http_version:
|
82
82
|
recorded_at: Fri, 16 May 2014 10:27:40 GMT
|
83
83
|
recorded_with: VCR 2.9.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Fri, 16 May 2014 10:25:58 GMT
|
40
40
|
- request:
|
41
41
|
method: put
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/mentions/dummy?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:52:28 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+6
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:52:28Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:52:28Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:52:28Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279078","topicId":5148,"likes":[],"links":[],"id":279078,"mention":null,"createdAt":"2014-05-15T11:52:28Z","message":"Test
|
80
80
|
Message 2 - 6","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 11:52:29 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279078?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -118,12 +118,12 @@ http_interactions:
|
|
118
118
|
- max-age=2592000
|
119
119
|
body:
|
120
120
|
encoding: UTF-8
|
121
|
-
string: '{"team":{"name":"Test Team 2","updatedAt":"2014-05-15T07:45:57Z","description":null,"id":1035,"createdAt":"2014-05-15T07:45:57Z","imageUrl":"https://typetalk.
|
121
|
+
string: '{"team":{"name":"Test Team 2","updatedAt":"2014-05-15T07:45:57Z","description":null,"id":1035,"createdAt":"2014-05-15T07:45:57Z","imageUrl":"https://typetalk.com/teams/1035/image.png?t=1400139957890"},"topic":{"name":"Test
|
122
122
|
Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:52:28Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
123
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:52:28Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
123
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:52:28Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279078","topicId":5148,"likes":[],"links":[],"id":279078,"mention":null,"createdAt":"2014-05-15T11:52:28Z","message":"Test
|
124
124
|
Message 2 - 6","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
125
125
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
126
|
-
Tester","imageUrl":"https://typetalk.
|
126
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]},"replies":[]}'
|
127
127
|
http_version:
|
128
128
|
recorded_at: Thu, 15 May 2014 11:52:29 GMT
|
129
129
|
recorded_with: VCR 2.9.0
|
data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_post_id_is_wrong.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:53:51 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/dummy?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_topic_id_is_wrong.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:58:27 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/posts/dummy?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 12:10:32 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+8
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T12:10:32Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:10:32Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:10:32Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279093","topicId":5148,"likes":[],"links":[],"id":279093,"mention":null,"createdAt":"2014-05-15T12:10:32Z","message":"Test
|
80
80
|
Message 2 - 8","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 12:10:33 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279093/like?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: ''
|
@@ -122,12 +122,12 @@ http_interactions:
|
|
122
122
|
encoding: UTF-8
|
123
123
|
string: '{"like":{"topicId":5148,"id":46099,"postId":279093,"comment":"","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
124
124
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
125
|
-
Tester","imageUrl":"https://typetalk.
|
125
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"}}}'
|
126
126
|
http_version:
|
127
127
|
recorded_at: Thu, 15 May 2014 12:10:33 GMT
|
128
128
|
- request:
|
129
129
|
method: post
|
130
|
-
uri: https://typetalk.
|
130
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279093/like?access_token=(ACCESS_TOKEN)
|
131
131
|
body:
|
132
132
|
encoding: UTF-8
|
133
133
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Message/_like_message/should_raise_error_when_post_id_is_wrong.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 12:06:17 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/dummy/like?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:16:45 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+1
|
@@ -76,10 +76,10 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:16:45Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:16:45Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:16:45Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279024","topicId":5148,"likes":[],"links":[],"id":279024,"mention":null,"createdAt":"2014-05-15T11:16:45Z","message":"Test
|
80
80
|
Message 2 - 1","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 11:16:45 GMT
|
85
85
|
recorded_with: VCR 2.9.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:33:06 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148/attachments?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
@@ -257,7 +257,7 @@ http_interactions:
|
|
257
257
|
recorded_at: Thu, 15 May 2014 11:33:07 GMT
|
258
258
|
- request:
|
259
259
|
method: post
|
260
|
-
uri: https://typetalk.
|
260
|
+
uri: https://typetalk.com/api/v1/topics/5148/attachments?access_token=(ACCESS_TOKEN)
|
261
261
|
body:
|
262
262
|
encoding: ASCII-8BIT
|
263
263
|
string: !binary |-
|
@@ -490,7 +490,7 @@ http_interactions:
|
|
490
490
|
recorded_at: Thu, 15 May 2014 11:33:08 GMT
|
491
491
|
- request:
|
492
492
|
method: post
|
493
|
-
uri: https://typetalk.
|
493
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
494
494
|
body:
|
495
495
|
encoding: UTF-8
|
496
496
|
string: fileKeys%5B0%5D=4e235d4e09375c6bd430edf67a199060c1f01eb3&fileKeys%5B1%5D=2fd98b571e294be79302d00ccac13c87d761f7df&message=Test+Message+2+-+4
|
@@ -527,10 +527,10 @@ http_interactions:
|
|
527
527
|
body:
|
528
528
|
encoding: UTF-8
|
529
529
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:33:09Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
530
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:09Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
530
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:09Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279049","topicId":5148,"likes":[],"links":[],"id":279049,"mention":null,"createdAt":"2014-05-15T11:33:09Z","message":"Test
|
531
531
|
Message 2 - 4","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
532
532
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
533
|
-
Tester","imageUrl":"https://typetalk.
|
533
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[{"fileName":"logo_typetalk.jpg","webUrl":"https://typetalk.com/topics/5148/posts/279049/attachments/1/logo_typetalk.jpg","apiUrl":"https://typetalk.com/api/v1/topics/5148/posts/279049/attachments/1/logo_typetalk.jpg"},{"fileName":"logo_cacoo.jpg","webUrl":"https://typetalk.com/topics/5148/posts/279049/attachments/2/logo_cacoo.jpg","apiUrl":"https://typetalk.com/api/v1/topics/5148/posts/279049/attachments/2/logo_cacoo.jpg"}]}}'
|
534
534
|
http_version:
|
535
535
|
recorded_at: Thu, 15 May 2014 11:33:09 GMT
|
536
536
|
recorded_with: VCR 2.9.0
|
data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_reply.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:33:03 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+2
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:33:05Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:05Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:05Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279047","topicId":5148,"likes":[],"links":[],"id":279047,"mention":null,"createdAt":"2014-05-15T11:33:05Z","message":"Test
|
80
80
|
Message 2 - 2","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 11:33:05 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: message=Test+Message+2+-+3&replyTo=279047
|
@@ -121,10 +121,10 @@ http_interactions:
|
|
121
121
|
body:
|
122
122
|
encoding: UTF-8
|
123
123
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:33:05Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
124
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:05Z","talks":[],"replyTo":279047,"url":"https://typetalk.
|
124
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:05Z","talks":[],"replyTo":279047,"url":"https://typetalk.com/topics/5148/posts/279048","topicId":5148,"likes":[],"links":[],"id":279048,"mention":null,"createdAt":"2014-05-15T11:33:05Z","message":"Test
|
125
125
|
Message 2 - 3","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
126
126
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
127
|
-
Tester","imageUrl":"https://typetalk.
|
127
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
128
128
|
http_version:
|
129
129
|
recorded_at: Thu, 15 May 2014 11:33:05 GMT
|
130
130
|
recorded_with: VCR 2.9.0
|
data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_talks.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:33:10 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+5&talkIds%5B0%5D=3993&talkIds%5B1%5D=3994&talkIds%5B2%5D=3995
|
@@ -77,12 +77,12 @@ http_interactions:
|
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T11:33:11Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
79
|
Topic 2"},"post":{"updatedAt":"2014-05-15T11:33:11Z","talks":[{"name":"Test
|
80
|
-
Summary 2 - 3","updatedAt":"2014-05-15T11:22:58Z","url":"https://typetalk.
|
81
|
-
Summary 2 - 2","updatedAt":"2014-05-15T11:22:43Z","url":"https://typetalk.
|
82
|
-
Summary 2 - 1","updatedAt":"2014-05-15T11:22:27Z","url":"https://typetalk.
|
80
|
+
Summary 2 - 3","updatedAt":"2014-05-15T11:22:58Z","url":"https://typetalk.com/topics/5148/talks/3995","description":null,"topicId":5148,"id":3995,"createdAt":"2014-05-15T11:22:58Z"},{"name":"Test
|
81
|
+
Summary 2 - 2","updatedAt":"2014-05-15T11:22:43Z","url":"https://typetalk.com/topics/5148/talks/3994","description":null,"topicId":5148,"id":3994,"createdAt":"2014-05-15T11:22:43Z"},{"name":"Test
|
82
|
+
Summary 2 - 1","updatedAt":"2014-05-15T11:22:27Z","url":"https://typetalk.com/topics/5148/talks/3993","description":null,"topicId":5148,"id":3993,"createdAt":"2014-05-15T11:22:27Z"}],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279050","topicId":5148,"likes":[],"links":[],"id":279050,"mention":null,"createdAt":"2014-05-15T11:33:11Z","message":"Test
|
83
83
|
Message 2 - 5","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
84
84
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
85
|
-
Tester","imageUrl":"https://typetalk.
|
85
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
86
86
|
http_version:
|
87
87
|
recorded_at: Thu, 15 May 2014 11:33:11 GMT
|
88
88
|
recorded_with: VCR 2.9.0
|
data/spec/cassettes/Typetalk_Api_Message/_post_message/should_raise_error_when_topic_id_is_wrong.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 11:16:48 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+Dummy
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 12:25:52 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+10
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T12:25:53Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:25:53Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:25:53Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279111","topicId":5148,"likes":[],"links":[],"id":279111,"mention":null,"createdAt":"2014-05-15T12:25:53Z","message":"Test
|
80
80
|
Message 2 - 10","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 12:25:53 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: message=Test+Message+2+-+11
|
@@ -121,15 +121,15 @@ http_interactions:
|
|
121
121
|
body:
|
122
122
|
encoding: UTF-8
|
123
123
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T12:26:01Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
124
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:01Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
124
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:01Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279112","topicId":5148,"likes":[],"links":[],"id":279112,"mention":null,"createdAt":"2014-05-15T12:26:01Z","message":"Test
|
125
125
|
Message 2 - 11","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
126
126
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
127
|
-
Tester","imageUrl":"https://typetalk.
|
127
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
128
128
|
http_version:
|
129
129
|
recorded_at: Thu, 15 May 2014 12:26:01 GMT
|
130
130
|
- request:
|
131
131
|
method: post
|
132
|
-
uri: https://typetalk.
|
132
|
+
uri: https://typetalk.com/api/v1/bookmark/save?access_token=(ACCESS_TOKEN)
|
133
133
|
body:
|
134
134
|
encoding: UTF-8
|
135
135
|
string: topicId=5148
|
data/spec/cassettes/Typetalk_Api_Message/_read_message/should_get_the_correct_resource_till_post.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://typetalk.
|
5
|
+
uri: https://typetalk.com/oauth2/access_token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy
|
@@ -39,7 +39,7 @@ http_interactions:
|
|
39
39
|
recorded_at: Thu, 15 May 2014 12:26:03 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: message=Test+Message+2+-+12
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T12:26:04Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:04Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:04Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279113","topicId":5148,"likes":[],"links":[],"id":279113,"mention":null,"createdAt":"2014-05-15T12:26:04Z","message":"Test
|
80
80
|
Message 2 - 12","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
81
81
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
82
|
-
Tester","imageUrl":"https://typetalk.
|
82
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Thu, 15 May 2014 12:26:04 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
string: message=Test+Message+2+-+13
|
@@ -121,15 +121,15 @@ http_interactions:
|
|
121
121
|
body:
|
122
122
|
encoding: UTF-8
|
123
123
|
string: '{"topic":{"name":"Test Topic 2","updatedAt":"2014-05-15T07:49:56Z","description":null,"id":5148,"lastPostedAt":"2014-05-15T12:26:04Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
124
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:04Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
124
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:26:04Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279114","topicId":5148,"likes":[],"links":[],"id":279114,"mention":null,"createdAt":"2014-05-15T12:26:04Z","message":"Test
|
125
125
|
Message 2 - 13","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
126
126
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
127
|
-
Tester","imageUrl":"https://typetalk.
|
127
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"attachments":[]}}'
|
128
128
|
http_version:
|
129
129
|
recorded_at: Thu, 15 May 2014 12:26:04 GMT
|
130
130
|
- request:
|
131
131
|
method: post
|
132
|
-
uri: https://typetalk.
|
132
|
+
uri: https://typetalk.com/api/v1/bookmark/save?access_token=(ACCESS_TOKEN)
|
133
133
|
body:
|
134
134
|
encoding: UTF-8
|
135
135
|
string: postId=279113&topicId=5148
|