An open API service indexing awesome lists of open source software.

https://github.com/pine/crystal-connpass

:anchor: A Crystal wrapper for the Connpass API
https://github.com/pine/crystal-connpass

Last synced: 4 months ago
JSON representation

:anchor: A Crystal wrapper for the Connpass API

Awesome Lists containing this project

README

          

# Connpass
[![Build Status](https://travis-ci.org/pine/crystal-connpass.svg?branch=master)](https://travis-ci.org/pine/crystal-connpass)
[![Dependency Status](https://shards.rocks/badge/github/pine/crystal-connpass/status.svg)](https://shards.rocks/github/pine/crystal-connpass)
[![devDependency Status](https://shards.rocks/badge/github/pine/crystal-connpass/dev_status.svg)](https://shards.rocks/github/pine/crystal-connpass)

A [Crystal](http://crystal-lang.org/) wrapper for the [Connpass](http://connpass.com/) API inspired by [Ruby's implementation](https://github.com/deeeki/connpass).

## Installation

Add it to `shard.yml`

```yaml
dependencies:
connpass:
github: pine/connpass
branch: master
```

## Usage

See example `example/event_search.cr` and [Official API reference](http://connpass.com/about/api/).

```crystal
require "connpass"

res = Connpass.event_search({ "keyword" => "Crystal" })
res.events.each{|e| puts e.title }
```

## How to run example
First, you should install Crystal compiler, using a tool such as [crenv](https://github.com/pine/crenv).

```
$ git clone https://github.com/pine/crystal-connpass.git
$ cd ./crystal-connpass
$ crystal deps
$ crystal run ./example/event_search.cr
Keyword> Ruby
All Ruby 10 events found.

1: Hacker Tackle
福岡のあらゆるエンジニアためのコミュニティイベント
会場: 福岡県Ruby コンテンツ産業振興センター
日時: 2015-09-26T12:50:00+09:00

2: Sensu Deep Talks #2
会場: ニフティ株式会社 セミナールームB
日時: 2015-10-02T18:30:00+09:00

3: 第12回 ベイサイドRuby on Rails勉強会@マスマス
初心者も経験者ももくもくしながら情報交換する会
会場: mass x mass
日時: 2015-09-29T19:00:00+09:00

...
```

## Contributing

1. Fork it ( https://github.com/pine/crystal-connpass/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request

## Acknowledgement

Thank you.

- [deeeki](https://github.com/deeeki/connpass)

## License
MIT License