pinboard

Version, currently 0.3.05 versions

github.com/oz/pinboard.cr

A crystal client for the Pinboard API

7 stars
0 dependents
License: MIT

Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  pinboard:
    github: oz/pinboard.cr
    version: ~> 0.3.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.3.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

# pinboard

[![Build Status](https://travis-ci.org/oz/pinboard.cr.svg?branch=master)](https://travis-ci.org/oz/pinboard.cr)

A crystal client for the [Pinboard] API.

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  pinboard:
    git: https://git.cypr.io/oz/pinboard.cr.git
```

## Usage

```crystal
require "pinboard"

pinboard = Pinboard::Client.new(token: "my secret token")
posts = pinboard.recent
if posts.is_a?(Pinboard::Error)
  puts posts.to_s
else
  posts.each do |post|
    puts "#{post.title}\n  url:#{post.url}\n  tags: #{post.tags.join(",")}\n"
  end
end
```

Pinboard returns either a `Pinboard::Error`, or something else. Check the tests
to be sure.

## Contributing

1. Clone `https://git.cypr.io/oz/pinboard.cr.git`,
2. Create your feature branch (`git checkout -b my-new-feature`),
3. Commit your changes (`git commit -am 'Add some feature'`),
4. Create a patch (`git format-patch origin`),
5. Send patch to `oz@cypr.io`.

## Contributors

- [oz](https://github.com/oz) Arnaud Berthomier - creator, maintainer

[Pinboard]: https://pinboard.in/