Giter Club home page Giter Club logo

openbd_api's Introduction

OpenBD

Gem Version Build Status

This gem wraps openBD Web API.

Installation

Add this line to your application's Gemfile:

gem 'openbd_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openbd_api

Usage

Library

Like this.

require 'openbd_api'

# create instance
client = OpenBD::Client.new

# get
client.get 9784309226712
client.get '9784309226712'
client.get '9784309226712,9784309226729'
client.get [9784309226712,9784309226729]
client.get ['9784309226712','9784309226729']

# bulk_get
client.bulk_get 9784309226712
client.bulk_get '9784309226712'
client.bulk_get '9784309226712,9784309226729'
client.bulk_get [9784309226712,9784309226729]
client.bulk_get ['9784309226712','9784309226729']

# coverage
client.coverage

# schema
client.schema

CLI

openbd executable calls OpenBD `s methods.

$ openbd get 9784309226712
$ openbd bulk_get 9784309226712 9784309226729
$ openbd coverage
$ openbd schema
$ openbd --help
Usage: openbd <method> [arguments] [options]

Supported <method>:
  get       Find book data by ISBN(s)
  bulk_get  Find book data by ISBN(s)
  coverage  Show all ISBNs in openBD
  schema    Show the JSON Schema of openBD

    -v, --version  print the version
    -h, --help     print help

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nasum/openbd. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

openbd_api's People

Contributors

dependabot-preview[bot] avatar nasum avatar takahashim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

takahashim

openbd_api's Issues

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler (~> 2.0.2)

  Current Bundler version:
    bundler (2.2.15)

Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:2.0.2` and rerun bundler using `run.rb _2.0.2_`

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

`source` ambiguity

openBDのJSONで、hanmotoの属性にreviewsがあり、さらにその属性にsourceというのがあります。
このためOpenBD::Resources::BaseResourceを継承してOpenBD::Resources::Hanmoto::Reviewみたいなクラスを作ろうとするとちょっとまずい感じなのでした…。

どうするのがいいでしょうか。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.