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
data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_get_the_correct_resource.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: Fri, 16 May 2014 11:37:28 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5171/members/invite/1779/decline?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -75,16 +75,16 @@ http_interactions:
|
|
75
75
|
- max-age=2592000
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '{"invite":{"updatedAt":"2014-05-16T11:37:26Z","id":1779,"createdAt":"2014-05-16T10:34:33Z","sender":{"name":"umakoz","updatedAt":"2014-05-16T09:59:47Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
78
|
+
string: '{"invite":{"updatedAt":"2014-05-16T11:37:26Z","id":1779,"createdAt":"2014-05-16T10:34:33Z","sender":{"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"},"message":"Test
|
79
79
|
Topic Invitation 5","topic":{"name":"Test Topic 5","updatedAt":"2014-05-16T10:34:33Z","description":null,"id":5171,"lastPostedAt":null,"createdAt":"2014-05-16T10:34:33Z","suggestion":"Test
|
80
80
|
Topic 5"},"account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","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=1400230711958"}}}'
|
83
83
|
http_version:
|
84
84
|
recorded_at: Fri, 16 May 2014 11:37:29 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5171/members/invite/1779/decline?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
90
|
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: Fri, 16 May 2014 11:37:32 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5171/members/invite/dummy/decline?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: Fri, 16 May 2014 11:37:31 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/members/invite/dummy/decline?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Notification/_get_notifications/should_get_the_correct_resource.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: Fri, 16 May 2014 10:36:22 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/notifications?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -73,29 +73,29 @@ http_interactions:
|
|
73
73
|
- max-age=2592000
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '{"mentions":[{"id":36069,"readAt":"2014-05-16T00:00:00Z","post":{"updatedAt":"2014-05-16T10:02:20Z","replyTo":null,"url":"https://typetalk.
|
76
|
+
string: '{"mentions":[{"id":36069,"readAt":"2014-05-16T00:00:00Z","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
|
77
77
|
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
|
78
|
-
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.
|
78
|
+
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":[]}},{"id":36068,"readAt":"2014-05-16T00:00:00Z","post":{"updatedAt":"2014-05-16T10:02:05Z","replyTo":null,"url":"https://typetalk.com/topics/5147/posts/280467","id":280467,"createdAt":"2014-05-16T10:02:05Z","message":"Test
|
79
79
|
Message 1 - 3 @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":[]}},{"id":35823,"readAt":null,"post":{"updatedAt":"2014-05-15T09:17:16Z","replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278782","id":278782,"createdAt":"2014-05-15T09:17:16Z","message":"Test
|
81
81
|
Message 3 - 5 @typetalk-rubygem-tester ","topic":{"name":"Test Topic 3","updatedAt":"2014-05-15T07:51:09Z","description":null,"id":5149,"lastPostedAt":"2014-05-15T09:58:01Z","createdAt":"2014-05-15T07:51:09Z","suggestion":"Test
|
82
|
-
Topic 3"},"account":{"name":"umakoz","updatedAt":"2014-05-16T09:59:47Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
83
|
-
Team 3","updatedAt":"2014-05-16T10:32:25Z","description":null,"id":1038,"createdAt":"2014-05-16T10:32:25Z","imageUrl":"https://typetalk.
|
82
|
+
Topic 3"},"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":[]}}],"invites":{"teams":[{"updatedAt":"2014-05-16T10:32:25Z","role":"member","id":2052,"team":{"name":"Test
|
83
|
+
Team 3","updatedAt":"2014-05-16T10:32:25Z","description":null,"id":1038,"createdAt":"2014-05-16T10:32:25Z","imageUrl":"https://typetalk.com/teams/1038/image.png?t=1400236345575"},"createdAt":"2014-05-16T10:32:25Z","sender":{"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"},"message":"Test
|
84
84
|
Team Invitation 3","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem
|
85
85
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
86
|
-
Tester","imageUrl":"https://typetalk.
|
87
|
-
Team 4","updatedAt":"2014-05-16T10:32:43Z","description":null,"id":1039,"createdAt":"2014-05-16T10:32:43Z","imageUrl":"https://typetalk.
|
86
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}},{"updatedAt":"2014-05-16T10:32:43Z","role":"member","id":2053,"team":{"name":"Test
|
87
|
+
Team 4","updatedAt":"2014-05-16T10:32:43Z","description":null,"id":1039,"createdAt":"2014-05-16T10:32:43Z","imageUrl":"https://typetalk.com/teams/1039/image.png?t=1400236363878"},"createdAt":"2014-05-16T10:32:43Z","sender":{"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"},"message":"Test
|
88
88
|
Team Invitation 4","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem
|
89
89
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
90
|
-
Tester","imageUrl":"https://typetalk.
|
90
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}}],"topics":[{"updatedAt":"2014-05-16T10:34:33Z","id":1779,"createdAt":"2014-05-16T10:34:33Z","sender":{"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"},"message":"Test
|
91
91
|
Topic Invitation 5","topic":{"name":"Test Topic 5","updatedAt":"2014-05-16T10:34:33Z","description":null,"id":5171,"lastPostedAt":null,"createdAt":"2014-05-16T10:34:33Z","suggestion":"Test
|
92
92
|
Topic 5"},"account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem
|
93
93
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
94
|
-
Tester","imageUrl":"https://typetalk.
|
94
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}},{"updatedAt":"2014-05-16T10:33:49Z","id":1778,"createdAt":"2014-05-16T10:33:49Z","sender":{"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"},"message":"Test
|
95
95
|
Topic Invitation 4","topic":{"name":"Test Topic 4","updatedAt":"2014-05-16T10:33:49Z","description":null,"id":5170,"lastPostedAt":null,"createdAt":"2014-05-16T10:33:49Z","suggestion":"Test
|
96
96
|
Topic 4"},"account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem
|
97
97
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
98
|
-
Tester","imageUrl":"https://typetalk.
|
98
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}}]}}'
|
99
99
|
http_version:
|
100
100
|
recorded_at: Fri, 16 May 2014 10:36:22 GMT
|
101
101
|
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:54:45 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/notifications/status?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: Fri, 16 May 2014 10:59:18 GMT
|
40
40
|
- request:
|
41
41
|
method: put
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/notifications/open?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 10:30:43 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149/favorite?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Topic/_favorite_topic/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 10:30:45 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/favorite?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_backward_resource.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 10:18:22 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149?access_token=(ACCESS_TOKEN)&count=3&direction=backward&from=278782
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -73,11 +73,11 @@ http_interactions:
|
|
73
73
|
- max-age=2592000
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '{"posts":[{"updatedAt":"2014-05-15T09:10:54Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
77
|
-
Message 3 - 2","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
78
|
-
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.
|
79
|
-
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
80
|
-
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
76
|
+
string: '{"posts":[{"updatedAt":"2014-05-15T09:10:54Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278765","topicId":5149,"likes":[{"topicId":5149,"id":46005,"postId":278765,"comment":"","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"}}],"links":[],"id":278765,"mention":null,"createdAt":"2014-05-15T09:10:54Z","message":"Test
|
77
|
+
Message 3 - 2","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:10:57Z","talks":[{"name":"Test
|
78
|
+
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.com/topics/5149/talks/3991","description":null,"topicId":5149,"id":3991,"createdAt":"2014-05-15T09:44:38Z"}],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278766","topicId":5149,"likes":[],"links":[],"id":278766,"mention":null,"createdAt":"2014-05-15T09:10:57Z","message":"Test
|
79
|
+
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:16:09Z","talks":[],"replyTo":278693,"url":"https://typetalk.com/topics/5149/posts/278779","topicId":5149,"likes":[],"links":[],"id":278779,"mention":null,"createdAt":"2014-05-15T09:16:09Z","message":"Test
|
80
|
+
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]}],"team":null,"topic":{"name":"Test
|
81
81
|
Topic 3","updatedAt":"2014-05-15T07:51:09Z","description":null,"id":5149,"lastPostedAt":"2014-05-15T09:58:01Z","createdAt":"2014-05-15T07:51:09Z","suggestion":"Test
|
82
82
|
Topic 3"},"bookmark":{"postId":278693,"updatedAt":"2014-05-15T09:09:42Z"},"hasNext":true}'
|
83
83
|
http_version:
|
data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_forward_resource.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 10:18:23 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149?access_token=(ACCESS_TOKEN)&count=2&direction=forward&from=278765
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -74,9 +74,9 @@ http_interactions:
|
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"posts":[{"updatedAt":"2014-05-15T09:10:57Z","talks":[{"name":"Test
|
77
|
-
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.
|
78
|
-
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
79
|
-
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
77
|
+
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.com/topics/5149/talks/3991","description":null,"topicId":5149,"id":3991,"createdAt":"2014-05-15T09:44:38Z"}],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278766","topicId":5149,"likes":[],"links":[],"id":278766,"mention":null,"createdAt":"2014-05-15T09:10:57Z","message":"Test
|
78
|
+
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:16:09Z","talks":[],"replyTo":278693,"url":"https://typetalk.com/topics/5149/posts/278779","topicId":5149,"likes":[],"links":[],"id":278779,"mention":null,"createdAt":"2014-05-15T09:16:09Z","message":"Test
|
79
|
+
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]}],"team":null,"topic":{"name":"Test
|
80
80
|
Topic 3","updatedAt":"2014-05-15T07:51:09Z","description":null,"id":5149,"lastPostedAt":"2014-05-15T09:58:01Z","createdAt":"2014-05-15T07:51:09Z","suggestion":"Test
|
81
81
|
Topic 3"},"bookmark":{"postId":278693,"updatedAt":"2014-05-15T09:09:42Z"},"hasNext":true}'
|
82
82
|
http_version:
|
@@ -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 10:00:04 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -73,14 +73,14 @@ http_interactions:
|
|
73
73
|
- max-age=2592000
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '{"posts":[{"updatedAt":"2014-05-15T08:54:30Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
77
|
-
Message 3 - 1","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
78
|
-
Message 3 - 2","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
79
|
-
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.
|
80
|
-
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
81
|
-
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
82
|
-
Message 3 - 5 @typetalk-rubygem-tester ","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
83
|
-
Message 3 - 6","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.
|
76
|
+
string: '{"posts":[{"updatedAt":"2014-05-15T08:54:30Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278693","topicId":5149,"likes":[],"links":[],"id":278693,"mention":null,"createdAt":"2014-05-15T08:54:30Z","message":"Test
|
77
|
+
Message 3 - 1","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:10:54Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278765","topicId":5149,"likes":[{"topicId":5149,"id":46005,"postId":278765,"comment":"","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"}}],"links":[],"id":278765,"mention":null,"createdAt":"2014-05-15T09:10:54Z","message":"Test
|
78
|
+
Message 3 - 2","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:10:57Z","talks":[{"name":"Test
|
79
|
+
Summary 3 - 1","updatedAt":"2014-05-15T09:44:38Z","url":"https://typetalk.com/topics/5149/talks/3991","description":null,"topicId":5149,"id":3991,"createdAt":"2014-05-15T09:44:38Z"}],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278766","topicId":5149,"likes":[],"links":[],"id":278766,"mention":null,"createdAt":"2014-05-15T09:10:57Z","message":"Test
|
80
|
+
Message 3 - 3","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:16:09Z","talks":[],"replyTo":278693,"url":"https://typetalk.com/topics/5149/posts/278779","topicId":5149,"likes":[],"links":[],"id":278779,"mention":null,"createdAt":"2014-05-15T09:16:09Z","message":"Test
|
81
|
+
Message 3 - 4","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:17:16Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278782","topicId":5149,"likes":[],"links":[],"id":278782,"mention":{"id":35823,"readAt":null},"createdAt":"2014-05-15T09:17:16Z","message":"Test
|
82
|
+
Message 3 - 5 @typetalk-rubygem-tester ","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[]},{"updatedAt":"2014-05-15T09:53:52Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5149/posts/278852","topicId":5149,"likes":[],"links":[],"id":278852,"mention":null,"createdAt":"2014-05-15T09:53:52Z","message":"Test
|
83
|
+
Message 3 - 6","account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"attachments":[{"fileName":"logo.jpg","webUrl":"https://typetalk.com/topics/5149/posts/278852/attachments/1/logo.jpg","apiUrl":"https://typetalk.com/api/v1/topics/5149/posts/278852/attachments/1/logo.jpg"}]}],"team":null,"topic":{"name":"Test
|
84
84
|
Topic 3","updatedAt":"2014-05-15T07:51:09Z","description":null,"id":5149,"lastPostedAt":"2014-05-15T09:58:01Z","createdAt":"2014-05-15T07:51:09Z","suggestion":"Test
|
85
85
|
Topic 3"},"bookmark":{"postId":278693,"updatedAt":"2014-05-15T09:09:42Z"},"hasNext":false}'
|
86
86
|
http_version:
|
data/spec/cassettes/Typetalk_Api_Topic/_get_topic/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 10:26:50 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Topic/_get_topic_members/should_get_the_correct_resource.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 10:20:51 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149/members/status?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"accounts":[{"account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
77
77
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
78
|
-
Tester","imageUrl":"https://typetalk.
|
78
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"},"online":true},{"account":{"name":"umakoz","updatedAt":"2014-05-15T00:44:58Z","fullName":"umakoz","id":921,"createdAt":"2013-12-09T23:47:12Z","suggestion":"umakoz","imageUrl":"https://typetalk.com/accounts/921/profile_image.png?t=1400114698595"},"online":true}],"pendings":[]}'
|
79
79
|
http_version:
|
80
80
|
recorded_at: Thu, 15 May 2014 10:20:51 GMT
|
81
81
|
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 10:26:16 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/members/status?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 08:55:12 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Topic/_unfavorite_topic/should_get_the_correct_resource.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 10:33:00 GMT
|
40
40
|
- request:
|
41
41
|
method: delete
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5149/favorite?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 10:33:01 GMT
|
40
40
|
- request:
|
41
41
|
method: delete
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/favorite?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 06:04:18 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/profile?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
77
77
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
78
|
-
Tester","imageUrl":"https://typetalk.
|
78
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"}}'
|
79
79
|
http_version:
|
80
80
|
recorded_at: Thu, 15 May 2014 06:04:19 GMT
|
81
81
|
recorded_with: VCR 2.9.0
|