webex-teams-conduit: Conduit wrapper of Webex Teams List API

[ library, mit, program, web ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.0.0, 0.2.0.1
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), bytestring, conduit, data-default, http-client, optparse-applicative, text, utf8-string, webex-teams-api, webex-teams-conduit [details]
License MIT
Copyright 2017-2020 Naoto Shimazaki
Author Naoto Shimazaki
Maintainer Naoto.Shimazaki@gmail.com
Category Web
Home page https://github.com/nshimaza/webex-teams-api#readme
Bug tracker https://github.com/nshimaza/webex-teams-api/issues
Source repo head: git clone https://github.com/nshimaza/webex-teams-api
Uploaded by nshimaza at 2020-07-29T15:13:09Z
Distributions LTSHaskell:0.2.0.1, NixOS:0.2.0.1, Stackage:0.2.0.1
Executables webex-teams-conduit-exe
Downloads 1326 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-07-29 [all 1 reports]

Readme for webex-teams-conduit-0.2.0.1

[back to package description]

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