pinboard-0.9.12.8: Access to the Pinboard API

Copyright(c) Jon Schoning 2015
Maintainerjonschoning@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Pinboard.Client

Contents

Description

 

Synopsis

Config

fromApiToken :: String -> PinboardConfig Source #

Create a default PinboardConfig using the supplied apiToken (ex: "use:ABCDEF0123456789ABCD")

The PinboardConfig provides authentication via apiToken

Monadic

runPinboard :: (MonadIO m, MonadCatch m, MonadErrorPinboard e) => PinboardConfig -> PinboardT m a -> m (e a) Source #

Execute computations in the Pinboard monad

runPinboardE :: (MonadIO m, MonadCatch m, MonadErrorPinboard e) => PinboardEnv -> PinboardT m a -> m (e a) Source #

Execute computations in the Pinboard monad (with specified http Manager)

pinboardJson :: (MonadPinboard m, FromJSON a) => PinboardRequest -> m a Source #

Create a Pinboard value from a PinboardRequest w/ json deserialization

Single

Sending

Delaying

requestThreadDelay :: PinboardConfig -> IO () Source #

delays the thread, if the time since the previous request is less than the configured maxRequestRateMills

Manager (http-client)

JSON Handling

Status Codes

Error Helpers

Client Dependencies