flowdock-0.2.0.0: Flowdock client library for Haskell

Safe HaskellNone

Chat.Flowdock

Contents

Description

A client library for the Flowdock API. Currently only implements the push API.

Synopsis

Using the client

The Flowdock API has different authentication mechanisms for different parts of the API. Functions that depend on specific authentication data are tagged with the authentication type necessary to use them.

 {-# LANGUAGE OverloadedStrings #-}

 import Chat.Flowdock

 -- The push API uses the 'Push' authentication type
 main = withFlowdockClient (Push "YOUR_FLOW_TOKEN_HERE") $ \client -> do
   let msg = newChatPushMessage "Hello World Bot" "Hello, world!"
   pushToChat client msg

withFlowdockClient :: ClientManagerSettings auth => auth -> (FlowdockClient auth -> IO a) -> IO aSource

Authentication types

newtype Push Source

Constructors

Push 

newtype User Source

Constructors

User 

General types

REST API

Pushing messages to the inbox

Pushing messages to the chatroom

Streaming events

Constructing messages

InboxPushMessage fields

ChatPushMessage fields

Common fields

Exception types

Lens field classes

class HasActive s a | s -> a whereSource

Methods

active :: Lens' s aSource

Instances

class HasApp s a | s -> a whereSource

Methods

app :: Lens' s aSource

Instances

class HasContentType s a | s -> a whereSource

Methods

contentType :: Lens' s aSource

class HasEvent s a | s -> a whereSource

Methods

event :: Lens' s aSource

Instances

HasEvent (Message a0) a0 

class HasFileName s a | s -> a whereSource

Methods

fileName :: Lens' s aSource

class HasFlow s a | s -> a whereSource

Methods

flow :: Traversal' s aSource

Instances

class HasFormat s a | s -> a whereSource

Methods

format :: Lens' s aSource

class HasFromAddress s a | s -> a whereSource

Methods

fromAddress :: Lens' s aSource

class HasFromName s a | s -> a whereSource

Methods

fromName :: Lens' s aSource

class HasLink s a | s -> a whereSource

Methods

link :: Lens' s aSource

class HasOrganization s a | s -> a whereSource

class HasProject s a | s -> a whereSource

Methods

project :: Lens' s aSource

class HasReplyTo s a | s -> a whereSource

Methods

replyTo :: Lens' s aSource

class HasSent s a | s -> a whereSource

Methods

sent :: Lens' s aSource

Instances

class HasSource s a | s -> a whereSource

Methods

source :: Lens' s aSource

class HasSubject s a | s -> a whereSource

Methods

subject :: Lens' s aSource

class HasTags s a | s -> a whereSource

Methods

tags :: Lens' s aSource

class HasUser s a | s -> a whereSource

Methods

user :: Lens' s aSource

Instances

class HasUuid s a | s -> a whereSource

Methods

uuid :: Lens' s aSource

Instances