pinboard library

A library that provides a nice interface to communicate with the Pinboard API.

Classes

Note
A class representing a Pinboard Note.
NotesResource
Class containing the methods for the notes resource of the Pinboard API.
NotesResponse
The response when calling notes.list.
Pinboard
The main Pinboard API client. Provides access to all the API methods.
PinboardClient
The underlying client that manages requests to the Pinboard API. You should never need to manually create this.
PinboardDates
Represents the response to /posts/dates, which contains the number of posts for a specific date.
PinboardGetResponse
Represents the response to posts.get.
PinboardResource
Base class from which all other resources extend.
PinboardResult
Represents the response to cetain Pinboard API calls that return a map with a result key.
PinboardResultCode
Represents an API response containing a map with a result_code key.
PinboardUpdate
Represents the response to posts/update containing the timestamp of the last update to any post.
Post
A representation of a Post on Pinbaord.
PostsResource
Class containing the methods for the posts resource of the Pinboard API.
TagsResource
Class containing the methods for the tags resource of the Pinboard API.
UserResource
Class containing the methods for the user resource of the Pinboard API.

Functions

boolToYesNo({bool value }) → String
Convert a boolean to Pinboard's yes/no type.
yesNoToBool({String value }) → bool
Convert Pinboard's yes/no type to a boolean.

Exceptions / Errors

ForbiddenError
Thrown when the Pinboard API returns a 403.
InternalServerError
Thrown when the Pinboard API returns a 500.
NotFoundError
Thrown when the Pinboard API returns a 404.
PinboardError
Base Exception class
ServiceUnavailableError
Thrown when the Pinboard API returns a 503.
TooManyRequestsError
Thrown when the Pinboard API returns a 429.
UnauthorizedError
Thrown when the Pinboard API returns a 401 (or when a token isn't set).