typetalk 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -26
  3. data/lib/typetalk.rb +1 -1
  4. data/lib/typetalk/api/auth.rb +3 -3
  5. data/lib/typetalk/version.rb +1 -1
  6. data/spec/cassettes/Typetalk_Api/_access_token/should_get_access_token.yml +1 -1
  7. data/spec/cassettes/Typetalk_Api/_access_token/should_not_update_access_token.yml +1 -1
  8. data/spec/cassettes/Typetalk_Api/_access_token/should_update_access_token_when_access_token_is_expired.yml +2 -2
  9. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_authorization_code.yml +1 -1
  10. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_client_credentials.yml +1 -1
  11. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_get_the_correct_resource_by_client_credentials_when_scope_changed.yml +1 -1
  12. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_authorization_code_is_wrong.yml +1 -1
  13. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_id_is_wrong.yml +1 -1
  14. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_client_secret_is_wrong.yml +1 -1
  15. data/spec/cassettes/Typetalk_Api_Auth/_get_access_token/should_raise_error_when_redirect_uri_mismatch.yml +1 -1
  16. data/spec/cassettes/Typetalk_Api_Auth/_update_access_token/should_get_the_correct_resource_by_client_credentials.yml +2 -2
  17. data/spec/cassettes/Typetalk_Api_Auth/_update_access_token/should_raise_error_when_refresh_token_is_wrong.yml +2 -2
  18. data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_correct_resource.yml +6 -6
  19. data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_correct_resource_till_mention.yml +5 -5
  20. data/spec/cassettes/Typetalk_Api_Mention/_get_mentions/should_get_the_unread_resource.yml +5 -5
  21. data/spec/cassettes/Typetalk_Api_Mention/_read_mention/should_get_the_correct_resource.yml +4 -4
  22. data/spec/cassettes/Typetalk_Api_Mention/_read_mention/should_raise_error_when_mention_id_is_wrong.yml +2 -2
  23. data/spec/cassettes/Typetalk_Api_Message/_get_message/should_get_the_correct_resource.yml +8 -8
  24. data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
  25. data/spec/cassettes/Typetalk_Api_Message/_get_message/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  26. data/spec/cassettes/Typetalk_Api_Message/_like_message/should_get_the_correct_resource.yml +7 -7
  27. data/spec/cassettes/Typetalk_Api_Message/_like_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
  28. data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource.yml +4 -4
  29. data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_attachments.yml +6 -6
  30. data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_reply.yml +7 -7
  31. data/spec/cassettes/Typetalk_Api_Message/_post_message/should_get_the_correct_resource_for_talks.yml +6 -6
  32. data/spec/cassettes/Typetalk_Api_Message/_post_message/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  33. data/spec/cassettes/Typetalk_Api_Message/_read_message/should_get_the_correct_resource.yml +8 -8
  34. data/spec/cassettes/Typetalk_Api_Message/_read_message/should_get_the_correct_resource_till_post.yml +8 -8
  35. data/spec/cassettes/Typetalk_Api_Message/_read_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
  36. data/spec/cassettes/Typetalk_Api_Message/_remove_message/should_get_the_correct_resource.yml +10 -10
  37. data/spec/cassettes/Typetalk_Api_Message/_remove_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
  38. data/spec/cassettes/Typetalk_Api_Message/_unlike_message/should_get_the_correct_resource.yml +9 -9
  39. data/spec/cassettes/Typetalk_Api_Message/_unlike_message/should_raise_error_when_post_id_is_wrong.yml +2 -2
  40. data/spec/cassettes/Typetalk_Api_Message/_upload_attachment/should_get_the_correct_resource.yml +2 -2
  41. data/spec/cassettes/Typetalk_Api_Message/_upload_attachment/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  42. data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_get_the_correct_resource.yml +5 -5
  43. data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_raise_error_when_invite_team_id_is_wrong.yml +2 -2
  44. data/spec/cassettes/Typetalk_Api_Notification/_accept_team/should_raise_error_when_team_id_is_wrong.yml +2 -2
  45. data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_get_the_correct_resource.yml +5 -5
  46. data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_raise_error_when_invite_topic_id_is_wrong.yml +2 -2
  47. data/spec/cassettes/Typetalk_Api_Notification/_accept_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  48. data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_get_the_correct_resource.yml +5 -5
  49. data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_raise_error_when_invite_team_id_is_wrong.yml +2 -2
  50. data/spec/cassettes/Typetalk_Api_Notification/_decline_team/should_raise_error_when_team_id_is_wrong.yml +2 -2
  51. data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_get_the_correct_resource.yml +5 -5
  52. data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_raise_error_when_invite_topic_id_is_wrong.yml +2 -2
  53. data/spec/cassettes/Typetalk_Api_Notification/_decline_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  54. data/spec/cassettes/Typetalk_Api_Notification/_get_notifications/should_get_the_correct_resource.yml +12 -12
  55. data/spec/cassettes/Typetalk_Api_Notification/_get_notifications_status/should_get_the_correct_resource.yml +2 -2
  56. data/spec/cassettes/Typetalk_Api_Notification/_read_notifications/should_get_the_correct_resource.yml +2 -2
  57. data/spec/cassettes/Typetalk_Api_Topic/_favorite_topic/should_get_the_correct_resource.yml +2 -2
  58. data/spec/cassettes/Typetalk_Api_Topic/_favorite_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  59. data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_backward_resource.yml +7 -7
  60. data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_forward_resource.yml +5 -5
  61. data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_get_the_correct_resource.yml +10 -10
  62. data/spec/cassettes/Typetalk_Api_Topic/_get_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  63. data/spec/cassettes/Typetalk_Api_Topic/_get_topic_members/should_get_the_correct_resource.yml +3 -3
  64. data/spec/cassettes/Typetalk_Api_Topic/_get_topic_members/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  65. data/spec/cassettes/Typetalk_Api_Topic/_get_topics/should_get_the_correct_resource.yml +2 -2
  66. data/spec/cassettes/Typetalk_Api_Topic/_unfavorite_topic/should_get_the_correct_resource.yml +2 -2
  67. data/spec/cassettes/Typetalk_Api_Topic/_unfavorite_topic/should_raise_error_when_topic_id_is_wrong.yml +2 -2
  68. data/spec/cassettes/Typetalk_Api_User/_get_profile/should_get_the_correct_resource.yml +3 -3
  69. data/spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_access_token_is_wrong.yml +2 -2
  70. data/spec/cassettes/Typetalk_Api_User/_get_profile/should_raise_error_when_scope_is_wrong.yml +2 -2
  71. data/spec/typetalk/api/auth_spec.rb +1 -1
  72. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38821cdb578e11db53a82a5cfa43492a54b8a3a9
4
- data.tar.gz: 9ed892e300164bc623a5ced62187b1fc1f039d26
3
+ metadata.gz: 7d8962e529241d31a4089c8d073d526c774ceae9
4
+ data.tar.gz: 855dd26813a9d31ecad2ddf7ea6109d5e40cb862
5
5
  SHA512:
6
- metadata.gz: 9a9cfb2ee0ef4147361ed350bd4683ed8f5978606d1ad2a9482c97c3ced978b1c69e536e00be071528a8e25abdaea3d5e1285110397f128dad1874c612a2b9fc
7
- data.tar.gz: ab17b20f765035355dc91dc8d1eb76aae11525fd798f8bc2bef90f154ea8ff09165a3e2020e5d2945cce29441c83cedaf4e17e177aff48ce507317217c0b6572
6
+ metadata.gz: 111897649627024995fce1f5cd82b34ad92b6edcf6074ce32459a834ac67bb09ddf525e537393a3796239db795803bf6e19b36022bcc1f1cbb1282324eb16a46
7
+ data.tar.gz: 34252f91cd676596c061435e75be4d385c6f3f3950c3e42ef7cf4005f36f67a7cc31b2d97278582a55132ee36a607e76f72827f65f0f399bac0965716f8be458
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Typetalk [![Build Status](https://travis-ci.org/umakoz/typetalk-rb.svg?branch=master)](https://travis-ci.org/umakoz/typetalk-rb)
2
2
 
3
- A Ruby wrapper for [Typetalk API](http://developers.typetalk.in/api.html). The Typetalk gem provides an easy-to-use wrapper for Typetalk's REST APIs.
3
+ A Ruby wrapper for [Typetalk API](https://developer.nulab-inc.com/docs/typetalk/). The Typetalk gem provides an easy-to-use wrapper for Typetalk's REST APIs.
4
4
 
5
5
  ## Requirements
6
6
 
@@ -62,9 +62,9 @@ It is usually not necessary if there is a configuration, because it automaticall
62
62
 
63
63
  require 'rubygems'
64
64
  require 'typetalk'
65
-
65
+
66
66
  api = Typetalk::Api.new
67
-
67
+
68
68
  # Get access token using client credentials
69
69
  response = api.get_access_token(scope: 'my')
70
70
  access_token = response.access_token
@@ -74,7 +74,7 @@ It is usually not necessary if there is a configuration, because it automaticall
74
74
  ### Profile
75
75
 
76
76
  # api is a Typetalk::Api
77
-
77
+
78
78
  # Get my profile
79
79
  response = api.get_profile
80
80
  my_name = response.account.name
@@ -85,26 +85,26 @@ It is usually not necessary if there is a configuration, because it automaticall
85
85
  ### Topics
86
86
 
87
87
  # api is a Typetalk::Api
88
-
88
+
89
89
  # Get my topics
90
90
  response = api.get_topics
91
91
  topic_id = response.topics[0].topic.id
92
92
  topic_name = response.topics[0].topic.name
93
-
93
+
94
94
  # Get topic messages
95
95
  topic = api.get_topic(topic_id)
96
96
  post_id = topic.posts[0].id
97
97
  message_text = topic.posts[0].message
98
98
  sender = topic.posts[0].account.name
99
-
99
+
100
100
  # Get topic members
101
101
  members = api.get_topic_members(topic_id)
102
102
  member_id = members.accounts[0].account.id
103
103
  member_name = members.accounts[0].account.name
104
-
104
+
105
105
  # Favorite topic
106
106
  api.favorite_topic(topic_id)
107
-
107
+
108
108
  # unfavorite topic
109
109
  api.unfavorite_topic(topic_id)
110
110
 
@@ -113,31 +113,31 @@ It is usually not necessary if there is a configuration, because it automaticall
113
113
  ### Message
114
114
 
115
115
  # api is a Typetalk::Api
116
-
116
+
117
117
  # Post message
118
118
  api.post_message(topic_id, 'message text')
119
-
119
+
120
120
  # Post message with attachment
121
121
  attachment = api.upload_attachment(topic_id, '/path/to/attachment.jpg')
122
122
  response = api.post_message(topic_id, 'message text', file_keys:[attachment.fileKey])
123
-
123
+
124
124
  # Get message
125
125
  message = api.get_message(topic_id, response.post.id)
126
126
  message_text = message.post.message
127
127
  sender = message.post.account.name
128
-
128
+
129
129
  # Like message
130
130
  api.like_message(topic_id, post_id)
131
-
131
+
132
132
  # Unlike message
133
133
  api.unlike_message(topic_id, post_id)
134
-
134
+
135
135
  # Read message
136
136
  api.read_message(topic_id, post_id)
137
-
137
+
138
138
  # Read all messages
139
139
  api.read_message(topic_id)
140
-
140
+
141
141
  # Remove message
142
142
  api.remove_message(topic_id, post_id)
143
143
 
@@ -146,7 +146,7 @@ It is usually not necessary if there is a configuration, because it automaticall
146
146
  ### Notification
147
147
 
148
148
  # api is a Typetalk::Api
149
-
149
+
150
150
  # Get notification list
151
151
  response = api.get_notifications
152
152
  # Team invitation
@@ -159,26 +159,26 @@ It is usually not necessary if there is a configuration, because it automaticall
159
159
  mention_message_text = response.mentions[0].post.message
160
160
  mention_topic_name = response.mentions[0].post.topic.name
161
161
  mention_sender = response.mentions[0].post.account.name
162
-
162
+
163
163
  # Get notification count
164
164
  response = api.get_notifications_status
165
165
  unopened = response.access.unopened
166
166
  team_pending = response.invite.team.pending
167
167
  topic_pending = response.invite.topic.pending
168
168
  mention_unread = response.mention.unread
169
-
169
+
170
170
  # Read notification
171
171
  api.read_notifications
172
-
172
+
173
173
  # Accept team invitation
174
174
  api.accept_team(team_id, invite_team_id)
175
-
175
+
176
176
  # Decline team invitation
177
177
  api.decline_team(team_id, invite_team_id)
178
-
178
+
179
179
  # Accept topic invitation
180
180
  api.accept_topic(topic_id, invite_topic_id)
181
-
181
+
182
182
  # Decline topic invitation
183
183
  api.decline_topic(topic_id, invite_topic_id)
184
184
 
@@ -194,10 +194,10 @@ It is usually not necessary if there is a configuration, because it automaticall
194
194
  message_text = response.mentions[0].post.message
195
195
  topic_name = response.mentions[0].post.topic.name
196
196
  sender = response.mentions[0].post.account.name
197
-
197
+
198
198
  # Get unread mention list
199
199
  response = api.get_mentions(unread:true)
200
-
200
+
201
201
  # Read mention
202
202
  api.read_mention(mention_id)
203
203
 
data/lib/typetalk.rb CHANGED
@@ -13,7 +13,7 @@ module Typetalk
13
13
  redirect_uri: nil,
14
14
  grant_type: 'client_credentials', # or 'authorization_code'
15
15
  scope: 'topic.read,topic.post,my',
16
- endpoint: 'https://typetalk.in/api/v1',
16
+ endpoint: 'https://typetalk.com/api/v1',
17
17
  proxy: nil,
18
18
  user_agent: "Typetalk Rubygem #{Typetalk::VERSION}",
19
19
  }
@@ -20,7 +20,7 @@ module Typetalk
20
20
  end
21
21
 
22
22
  response = connection.post do |req|
23
- req.url 'https://typetalk.in/oauth2/access_token'
23
+ req.url 'https://typetalk.com/oauth2/access_token'
24
24
  req.body = body
25
25
  end
26
26
  parse_response(response)
@@ -38,7 +38,7 @@ module Typetalk
38
38
  }
39
39
 
40
40
  response = connection.post do |req|
41
- req.url 'https://typetalk.in/oauth2/access_token'
41
+ req.url 'https://typetalk.com/oauth2/access_token'
42
42
  req.body = body
43
43
  end
44
44
  parse_response(response)
@@ -54,7 +54,7 @@ module Typetalk
54
54
  scope: options[:scope] || Typetalk.config.scope,
55
55
  response_type: 'code',
56
56
  }
57
- url = URI.parse('https://typetalk.in/oauth2/authorize')
57
+ url = URI.parse('https://typetalk.com/oauth2/authorize')
58
58
  url.query = URI.encode_www_form(params)
59
59
  url.to_s
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module Typetalk
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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, 29 May 2014 05:12:38 GMT
40
40
  - request:
41
41
  method: post
42
- uri: https://typetalk.in/oauth2/access_token
42
+ uri: https://typetalk.com/oauth2/access_token
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=refresh_token&refresh_token=(REFRESH_TOKEN)
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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)&code=(AUTHORIZATION_CODE)&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fdummy%2F&scope=topic.read%2Ctopic.post%2Cmy
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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=my
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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)&code=(AUTHORIZATION_CODE)&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fdummy%2F&scope=topic.read%2Ctopic.post%2Cmy
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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)&code=(AUTHORIZATION_CODE)&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fdummy_mismatch%2F&scope=topic.read%2Ctopic.post%2Cmy
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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, 29 May 2014 05:11:57 GMT
40
40
  - request:
41
41
  method: post
42
- uri: https://typetalk.in/oauth2/access_token
42
+ uri: https://typetalk.com/oauth2/access_token
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=refresh_token&refresh_token=(REFRESH_TOKEN)
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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, 29 May 2014 04:12:51 GMT
40
40
  - request:
41
41
  method: post
42
- uri: https://typetalk.in/oauth2/access_token
42
+ uri: https://typetalk.com/oauth2/access_token
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=refresh_token&refresh_token=dummy_token
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://typetalk.in/oauth2/access_token
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:20:20 GMT
40
40
  - request:
41
41
  method: get
42
- uri: https://typetalk.in/api/v1/mentions?access_token=(ACCESS_TOKEN)
42
+ uri: https://typetalk.com/api/v1/mentions?access_token=(ACCESS_TOKEN)
43
43
  body:
44
44
  encoding: US-ASCII
45
45
  string: ''
@@ -73,13 +73,13 @@ http_interactions:
73
73
  - max-age=2592000
74
74
  body:
75
75
  encoding: UTF-8
76
- string: '{"mentions":[{"id":36069,"readAt":null,"post":{"updatedAt":"2014-05-16T10:02:20Z","replyTo":null,"url":"https://typetalk.in/topics/5147/posts/280469","id":280469,"createdAt":"2014-05-16T10:02:20Z","message":"Test
76
+ string: '{"mentions":[{"id":36069,"readAt":null,"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.in/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.in/topics/5147/posts/280467","id":280467,"createdAt":"2014-05-16T10:02:05Z","message":"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.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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}},{"id":35823,"readAt":null,"post":{"updatedAt":"2014-05-15T09:17:16Z","replyTo":null,"url":"https://typetalk.in/topics/5149/posts/278782","id":278782,"createdAt":"2014-05-15T09:17:16Z","message":"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.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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}}]}'
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":[]}}]}'
83
83
  http_version:
84
84
  recorded_at: Fri, 16 May 2014 10:20:21 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.in/oauth2/access_token
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:19:41 GMT
40
40
  - request:
41
41
  method: get
42
- uri: https://typetalk.in/api/v1/mentions?access_token=(ACCESS_TOKEN)&from=36069
42
+ uri: https://typetalk.com/api/v1/mentions?access_token=(ACCESS_TOKEN)&from=36069
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: '{"mentions":[{"id":36068,"readAt":"2014-05-16T00:00:00Z","post":{"updatedAt":"2014-05-16T10:02:05Z","replyTo":null,"url":"https://typetalk.in/topics/5147/posts/280467","id":280467,"createdAt":"2014-05-16T10:02:05Z","message":"Test
76
+ string: '{"mentions":[{"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
77
77
  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
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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}},{"id":35823,"readAt":null,"post":{"updatedAt":"2014-05-15T09:17:16Z","replyTo":null,"url":"https://typetalk.in/topics/5149/posts/278782","id":278782,"createdAt":"2014-05-15T09:17:16Z","message":"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.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
79
79
  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
80
- 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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}}]}'
80
+ 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":[]}}]}'
81
81
  http_version:
82
82
  recorded_at: Fri, 16 May 2014 10:19:42 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.in/oauth2/access_token
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:19:42 GMT
40
40
  - request:
41
41
  method: get
42
- uri: https://typetalk.in/api/v1/mentions?access_token=(ACCESS_TOKEN)&unread=true
42
+ uri: https://typetalk.com/api/v1/mentions?access_token=(ACCESS_TOKEN)&unread=true
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: '{"mentions":[{"id":36069,"readAt":null,"post":{"updatedAt":"2014-05-16T10:02:20Z","replyTo":null,"url":"https://typetalk.in/topics/5147/posts/280469","id":280469,"createdAt":"2014-05-16T10:02:20Z","message":"Test
76
+ string: '{"mentions":[{"id":36069,"readAt":null,"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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}},{"id":35823,"readAt":null,"post":{"updatedAt":"2014-05-15T09:17:16Z","replyTo":null,"url":"https://typetalk.in/topics/5149/posts/278782","id":278782,"createdAt":"2014-05-15T09:17:16Z","message":"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.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
79
79
  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
80
- 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.in/accounts/921/profile_image.png?t=1400234387555"},"attachments":[]}}]}'
80
+ 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":[]}}]}'
81
81
  http_version:
82
82
  recorded_at: Fri, 16 May 2014 10:19:43 GMT
83
83
  recorded_with: VCR 2.9.0