Closed sue445 closed 6 years ago
require "chatwork" ChatWork.access_token = "XXX" ChatWork::Message.create(room_id: 1234, body: "Hello, ChatWork!")
require "chatwork" ChatWork.client_id = "XXX" ChatWork.client_secret = "XXX" refresh_token = "XXX" token = ChatWork::Token.refresh_access_token(refresh_token) new_access_token = token["access_token"] # Create message ChatWork.access_token = new_access_token ChatWork::Message.create(room_id: 1234, body: "Hello, ChatWork!")
See following
I think this PR conflicts with #20. I will immediately resolve the conflict after you merge.
I rebase and pushed.
Great!! I'm always grateful for your help!
New Features
Perform ChatWork API with access token
Refresh access token with refresh token
Specification
See following
Note
I think this PR conflicts with #20. I will immediately resolve the conflict after you merge.