pinboard: Access to the Pinboard API

[ library, mit, network-apis ] [ Propose Tags ]

The Pinboard API is a way to interact programatically with your bookmarks, notes and other Pinboard data. This library wraps the API exposing functions and data structures suitable for usage in Haskell programs.

Example:

import Pinboard

main :: IO ()
main = do
  let config = fromApiToken "api token"
  result <- runPinboard config $ getPostsRecent Nothing Nothing
  case result of
    Right details -> print details
    Left pinboardError -> print pinboardError

[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.6.1, 0.6.2, 0.6.2.1, 0.6.2.2, 0.6.3, 0.6.4, 0.6.5, 0.7.5, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.8.9, 0.8.10, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.12.1, 0.9.12.2, 0.9.12.3, 0.9.12.4, 0.9.12.5, 0.9.12.6, 0.9.12.7, 0.9.12.8, 0.9.12.9, 0.9.12.10, 0.9.12.11, 0.10.0.0, 0.10.0.1, 0.10.0.2, 0.10.1.2, 0.10.1.3, 0.10.1.4, 0.10.2.0, 0.10.3.0
Change log CHANGELOG.md
Dependencies aeson, base (>=4.6 && <5.0), bytestring, containers, either, haskell-src-exts, HsOpenSSL, http-streams, http-types, io-streams, mtl (>=2.1.3.1), network, old-locale, random (>=1.1), text, time, transformers, unordered-containers, vector [details]
License MIT
Copyright Copyright (c) 2015 Jon Schoning
Author Jon Schoning
Maintainer jonschoning@gmail.com
Category Network APIs
Home page https://github.com/jonschoning/pinboard
Bug tracker https://github.com/jonschoning/pinboard/issues
Source repo head: git clone git://github.com/jonschoning/pinboard.git
Uploaded by jonschoning at 2015-04-07T01:43:57Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 30172 total (119 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-04-07 [all 1 reports]

Readme for pinboard-0.6.5

[back to package description]

Pinboard Hackage

The Pinboard API is a way to interact programatically with your bookmarks, notes and other Pinboard data. This library wraps the API exposing functions and data structures suitable for usage in Haskell programs.

Hackage page and Haddock documentation

http://hackage.haskell.org/package/pinboard

Pinboard Api documentation

https://pinboard.in/api/

Examples:

getPostsRecent

{-# LANGUAGE OverloadedStrings #-}

import Pinboard

main :: IO ()
main = do
  let config = fromApiToken "api token"
  result <- runPinboard config $ getPostsRecent Nothing Nothing
  case result of
    Right details -> print details
    Left pinboardError -> print pinboardError

Modules

Pinboard.Client

Executes the methods defined in Pinboard.Api

Pinboard.Api

Provides Pinboard Api Methods

Pinboard.ApiTypes

Pinboard Data Structures returned by the Api

Windows

This package relies on HsOpenSSL which requires a binary distribution of openssl

In order for this install to go smoothly one must install a binary distribution of openssl from here:

http://slproweb.com/products/Win32OpenSSL.html 

and link during the cabal install process like this (assuing default install directories):

cabal install HsOpenSSL --extra-include-dirs="c:/OpenSSL-Win32/include" --extra-lib-dirs="c:/OpenSSL-Win32"