ConnpassApiV2

connpass API v2 client for Ruby

Requirements

Installation

Install the gem and add to the application’s Gemfile by executing:

bundle add connpass_api_v2

If bundler is not being used to manage dependencies, install the gem by executing:

gem install connpass_api_v2

Usage

require "connpass_api_v2"

client = ConnpassApiV2.client(ENV["CONNPASS_API_KEY"])

client.get_events

res = client.get_events(nickname: "sue445", count: 100)

res.events.count
#=> 100

res.events[0].title
#=> "STORES.rb RubyKaigi 2025 直前スペシャル"

res.events[0].url
#=> "https://hey.connpass.com/event/347445/"

All methods are followings

sue445.github.io/connpass_api_v2-ruby/ConnpassApiV2/Client.html

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests.

You can also run bin/console for an interactive prompt that will allow you to experiment.

Steps to using bin/console

  1. Get connpass API key

  2. Put your key to .env

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at github.com/sue445/connpass_api_v2.

License

The gem is available as open source under the terms of the MIT License.