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_Message/_read_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:19:16 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/bookmark/save?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: postId=dummy&topicId=5148
|
data/spec/cassettes/Typetalk_Api_Message/_remove_message/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 12:04: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+-+7
|
@@ -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:04:04Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:04:04Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:04:04Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279090","topicId":5148,"likes":[],"links":[],"id":279090,"mention":null,"createdAt":"2014-05-15T12:04:04Z","message":"Test
|
80
80
|
Message 2 - 7","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:04:04 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279090?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -118,17 +118,17 @@ 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-15T12:04:04Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
123
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:04:04Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
123
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:04:04Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279090","topicId":5148,"likes":[],"links":[],"id":279090,"mention":null,"createdAt":"2014-05-15T12:04:04Z","message":"Test
|
124
124
|
Message 2 - 7","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 12:04:05 GMT
|
129
129
|
- request:
|
130
130
|
method: delete
|
131
|
-
uri: https://typetalk.
|
131
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279090?access_token=(ACCESS_TOKEN)
|
132
132
|
body:
|
133
133
|
encoding: US-ASCII
|
134
134
|
string: ''
|
@@ -167,7 +167,7 @@ http_interactions:
|
|
167
167
|
recorded_at: Thu, 15 May 2014 12:04:05 GMT
|
168
168
|
- request:
|
169
169
|
method: get
|
170
|
-
uri: https://typetalk.
|
170
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279090?access_token=(ACCESS_TOKEN)
|
171
171
|
body:
|
172
172
|
encoding: US-ASCII
|
173
173
|
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:58:32 GMT
|
40
40
|
- request:
|
41
41
|
method: delete
|
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/_unlike_message/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 12:14: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+-+9
|
@@ -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:14:33Z","createdAt":"2014-05-15T07:45:57Z","suggestion":"Test
|
79
|
-
Topic 2"},"post":{"updatedAt":"2014-05-15T12:14:33Z","talks":[],"replyTo":null,"url":"https://typetalk.
|
79
|
+
Topic 2"},"post":{"updatedAt":"2014-05-15T12:14:33Z","talks":[],"replyTo":null,"url":"https://typetalk.com/topics/5148/posts/279097","topicId":5148,"likes":[],"links":[],"id":279097,"mention":null,"createdAt":"2014-05-15T12:14:33Z","message":"Test
|
80
80
|
Message 2 - 9","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:14:33 GMT
|
85
85
|
- request:
|
86
86
|
method: delete
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279097/like?access_token=(ACCESS_TOKEN)
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -115,7 +115,7 @@ http_interactions:
|
|
115
115
|
recorded_at: Thu, 15 May 2014 12:14:34 GMT
|
116
116
|
- request:
|
117
117
|
method: post
|
118
|
-
uri: https://typetalk.
|
118
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279097/like?access_token=(ACCESS_TOKEN)
|
119
119
|
body:
|
120
120
|
encoding: UTF-8
|
121
121
|
string: ''
|
@@ -153,12 +153,12 @@ http_interactions:
|
|
153
153
|
encoding: UTF-8
|
154
154
|
string: '{"like":{"topicId":5148,"id":46100,"postId":279097,"comment":"","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
155
155
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
156
|
-
Tester","imageUrl":"https://typetalk.
|
156
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"}}}'
|
157
157
|
http_version:
|
158
158
|
recorded_at: Thu, 15 May 2014 12:14:35 GMT
|
159
159
|
- request:
|
160
160
|
method: delete
|
161
|
-
uri: https://typetalk.
|
161
|
+
uri: https://typetalk.com/api/v1/topics/5148/posts/279097/like?access_token=(ACCESS_TOKEN)
|
162
162
|
body:
|
163
163
|
encoding: US-ASCII
|
164
164
|
string: ''
|
@@ -194,7 +194,7 @@ http_interactions:
|
|
194
194
|
encoding: UTF-8
|
195
195
|
string: '{"like":{"topicId":5148,"id":46100,"postId":279097,"comment":"","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-15T00:36:03Z","fullName":"Rubygem
|
196
196
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
197
|
-
Tester","imageUrl":"https://typetalk.
|
197
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400114163838"}}}'
|
198
198
|
http_version:
|
199
199
|
recorded_at: Thu, 15 May 2014 12:14:35 GMT
|
200
200
|
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 12:13:16 GMT
|
40
40
|
- request:
|
41
41
|
method: delete
|
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: US-ASCII
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Message/_upload_attachment/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 12:00:14 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 |-
|
@@ -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:14 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/attachments?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: ASCII-8BIT
|
45
45
|
string: !binary |-
|
data/spec/cassettes/Typetalk_Api_Notification/_accept_team/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:10:49 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/1038/members/invite/2052/accept?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -77,15 +77,15 @@ http_interactions:
|
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"topics":[{"name":"Test Team 3","updatedAt":"2014-05-16T10:32:25Z","description":null,"id":5168,"lastPostedAt":null,"createdAt":"2014-05-16T10:32:25Z","suggestion":"Test
|
79
79
|
Team 3"}],"invite":{"updatedAt":"2014-05-16T11:10:46Z","role":"member","id":2052,"team":{"name":"Test
|
80
|
-
Team 3","updatedAt":"2014-05-16T10:32:25Z","description":null,"id":1038,"createdAt":"2014-05-16T10:32:25Z","imageUrl":"https://typetalk.
|
80
|
+
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
|
81
81
|
Team Invitation 3","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem
|
82
82
|
Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem
|
83
|
-
Tester","imageUrl":"https://typetalk.
|
83
|
+
Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}}}'
|
84
84
|
http_version:
|
85
85
|
recorded_at: Fri, 16 May 2014 11:10:49 GMT
|
86
86
|
- request:
|
87
87
|
method: post
|
88
|
-
uri: https://typetalk.
|
88
|
+
uri: https://typetalk.com/api/v1/teams/1038/members/invite/2052/accept?access_token=(ACCESS_TOKEN)
|
89
89
|
body:
|
90
90
|
encoding: UTF-8
|
91
91
|
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:08:37 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/1038/members/invite/dummy/accept?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:05:23 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/dummy/members/invite/dummy/accept?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Notification/_accept_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:30:28 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5170/members/invite/1778/accept?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:30:25Z","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.
|
78
|
+
string: '{"invite":{"updatedAt":"2014-05-16T11:30:25Z","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
|
79
79
|
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
|
80
80
|
Topic 4"},"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:30:28 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/topics/5170/members/invite/1778/accept?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:30:31 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/5170/members/invite/dummy/accept?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:30:30 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/topics/dummy/members/invite/dummy/accept?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
data/spec/cassettes/Typetalk_Api_Notification/_decline_team/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:20:56 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/1039/members/invite/2053/decline?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|
@@ -76,15 +76,15 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: '{"updatedAt":"2014-05-16T11:20:53Z","role":"member","id":2053,"team":{"name":"Test
|
79
|
-
Team 4","updatedAt":"2014-05-16T10:32:43Z","description":null,"id":1039,"createdAt":"2014-05-16T10:32:43Z","imageUrl":"https://typetalk.
|
79
|
+
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
|
80
80
|
Team Invitation 4","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:20:57 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
|
-
uri: https://typetalk.
|
87
|
+
uri: https://typetalk.com/api/v1/teams/1039/members/invite/2053/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:20:59 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/1039/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:20:57 GMT
|
40
40
|
- request:
|
41
41
|
method: post
|
42
|
-
uri: https://typetalk.
|
42
|
+
uri: https://typetalk.com/api/v1/teams/dummy/members/invite/dummy/decline?access_token=(ACCESS_TOKEN)
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: ''
|