pinboard-0.10.2.0: Access to the Pinboard API
Copyright(c) Jon Schoning 2015
Maintainerjonschoning@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Pinboard.Client

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 :: MonadUnliftIO m => PinboardConfig -> PinboardT m a -> m a Source #

Execute computations in the Pinboard monad

runPinboardE :: MonadUnliftIO m => PinboardEnv -> PinboardT m a -> m a Source #

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

pinboardJson :: (MonadPinboard m, FromJSON a) => PinboardRequest -> m (Either PinboardError 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