MIT licensed by Naoto Shimazaki
Maintained by [email protected]
This version can be pinned in stack with:webex-teams-conduit-0.2.0.0@sha256:88d4dee35f08e9612c80c51ffa0164291127f33b9873ff7e28622e78d0be75a8,2104

Module documentation for 0.2.0.0

webex-teams-conduit

License: MIT Build Status Hackage Stackage Nightly Stackage LTS

Conduit wrapper of webex-teams-api.

Webex-teams-conduit is thin wrappers of list API. It transform chunky response from 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 between Rooms and users (Person). You can extract each Membership from Conduit pipe. The streamListWithFilter, provided by webex-teams-conduit, automatically performs pagenation when it is asked more element and last response 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.0

  • Initial release.