webex-teams-conduit
Conduit wrapper of Webex Teams List API
https://github.com/nshimaza/webex-teams-api#readme
LTS Haskell 23.27: | 0.2.0.1 |
Stackage Nightly 2025-07-13: | 0.2.0.1 |
Latest on Hackage: | 0.2.0.1 |
webex-teams-conduit-0.2.0.1@sha256:22430121de0da19e1d96e5879a876928ece4d552424e1df891e47f375aa89e4b,2082
Module documentation for 0.2.0.1
- Network
- Network.WebexTeams
webex-teams-conduit
Conduit wrapper of webex-teams-api.
Webex-teams-conduit is thin wrappers of list API. It transform chunky responsefrom list API into seamless stream of elements.
A Haskell bindings for Cisco Webex Teams (formerly Cisco Spark) API
This package also provides some sample usage in command line application style.See source under app directory of the source package.
Sample Usage
Following example is calling List Membership API which returns membership betweenRooms and users (Person). You can extract each Membership fromConduit pipe. ThestreamListWithFilter
, provided by webex-teams-conduit,automatically performs pagenation when it is asked more element and lastresponse had link of subsequent page in HTTP Link Header.
let auth = Authorization "your authorization token" filter = MembershipFilter yourRoomId Nothing Nothing runConduit $ streamListWithFilter auth def filter .| takeC 200 .| mapM_C print
You can find more examples in app/Main.hs.
Limitation
- Relative reference in Link Header is not recognized as next page
Changes
webex-teams-conduit-0.2.0.1
- Include .cabal file in source repo.
- Migrate CI from Travis to GitHub Actions.
- Build and test for multiple platforms and GHC versions.
webex-teams-conduit-0.2.0.0
- Initial release.