https://github.com/matsubara0507/chatwork
The ChatWork API for Haskell
https://github.com/matsubara0507/chatwork
haskell haskell-library
Last synced: 9 months ago
JSON representation
The ChatWork API for Haskell
- Host: GitHub
- URL: https://github.com/matsubara0507/chatwork
- Owner: matsubara0507
- License: mit
- Created: 2017-06-11T07:25:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T05:00:01.000Z (over 7 years ago)
- Last Synced: 2025-04-14T07:43:11.704Z (10 months ago)
- Topics: haskell, haskell-library
- Language: Haskell
- Size: 111 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# chatwork
[](https://hackage.haskell.org/package/chatwork)
[](https://travis-ci.org/matsubara0507/chatwork)
[](http://stackage.org/lts/package/chatwork)
[](http://stackage.org/nightly/package/chatwork)
The ChatWork API for Haskell.
## example
```haskell
>> :module Network.HTTP.Req ChatWork
>> token = ChatWorkClient "xxx"
>> responseBody <$> runReq def (getMe token)
Right (Me {meToAccountId = 1234567, meToRoomId = 9876543, meToName = "\26494\21407\20449\24544", meToChatworkId = "", meToOrganizationId = 13579, meToOrganizationName = "", meToDepartment = "", meToTitle = "", meToUrl = "", meToIntroduction = "", meToMail = "", meToTelOrganization = "", meToTelExtension = "", meToTelMobile = "", meToSkype = "", meToFacebook = "", meToTwitter = "", meToAvatarImageUrl = "https://appdata.chatwork.com/avatar/1234/12345678.rsz.png"})
>> responseBody <$> runReq def (createRoom token $ CreateRoomParams Nothing Nothing [1234567] Nothing Nothing "test")
Right (RoomIdWrap {getRoomId = 78381630})
>> responseBody <$> runReq def (postMessage token 78381630 "hello")
Right (MessageIdWrap {getMessageId = "930765966558646272"})
```