--- http_interactions: - request: method: post uri: https://typetalk.com/oauth2/access_token body: encoding: UTF-8 string: client_id=(CLIENT_ID)&client_secret=(CLIENT_SECRET)&grant_type=client_credentials&scope=topic.read%2Ctopic.post%2Cmy headers: Accept: - application/json; charset=utf-8 User-Agent: - Typetalk Rubygem 0.0.1 Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 200 message: OK headers: Server: - nginx Date: - Fri, 16 May 2014 11:10:45 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Strict-Transport-Security: - max-age=2592000 body: encoding: UTF-8 string: '{"access_token":"(ACCESS_TOKEN)","expires_in":3600,"scope":"topic.read,topic.post,my","refresh_token":"(REFRESH_TOKEN)","token_type":"Bearer"}' http_version: recorded_at: Fri, 16 May 2014 11:10:49 GMT - request: method: post uri: https://typetalk.com/api/v1/teams/1038/members/invite/2052/accept?access_token=(ACCESS_TOKEN) body: encoding: UTF-8 string: '' headers: Accept: - application/json; charset=utf-8 User-Agent: - Typetalk Rubygem 0.0.1 Content-Length: - '0' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 200 message: OK headers: Server: - nginx Date: - Fri, 16 May 2014 11:10:46 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Cache-Control: - no-cache Etag: - W/"c38b9e77537c5e6317ca3bade5da70fc" Strict-Transport-Security: - max-age=2592000 body: encoding: UTF-8 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 Team 3"}],"invite":{"updatedAt":"2014-05-16T11:10:46Z","role":"member","id":2052,"team":{"name":"Test 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 Team Invitation 3","account":{"name":"typetalk-rubygem-tester","updatedAt":"2014-05-16T08:58:31Z","fullName":"Rubygem Tester","id":3865,"createdAt":"2014-05-14T09:09:44Z","suggestion":"Rubygem Tester","imageUrl":"https://typetalk.com/accounts/3865/profile_image.png?t=1400230711958"}}}' http_version: recorded_at: Fri, 16 May 2014 11:10:49 GMT - request: method: post uri: https://typetalk.com/api/v1/teams/1038/members/invite/2052/accept?access_token=(ACCESS_TOKEN) body: encoding: UTF-8 string: '' headers: Accept: - application/json; charset=utf-8 User-Agent: - Typetalk Rubygem 0.0.1 Content-Length: - '0' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 400 message: Bad Request headers: Server: - nginx Date: - Fri, 16 May 2014 11:10:47 GMT Content-Length: - '0' Connection: - keep-alive body: encoding: UTF-8 string: '' http_version: recorded_at: Fri, 16 May 2014 11:10:50 GMT recorded_with: VCR 2.9.0