Git Product home page Git Product logo

color_me's Introduction

ColorMe

Build Status Code Climate

カラーミーのAPI( http://shop-pro.jp/?mode=api_started )をRubyから扱うためのラッパーgem

API対応状況

  • ✅ GET /v1/shop.json
  • ✅ GET /v1/sales/stat.json
  • ✅ GET /v1/sales.json
  • ✅ GET /v1/sales/#{id}.json
  • ☑️ PUT /v1/sales/#{id}.json
  • ☑️ PUT /v1/sales/#{id}/cancel.json
  • ☑️ GET /v1/customers.json
  • ☑️ GET /v1/customers/#{id}.json
  • ✅ GET /v1/products.json
  • ✅ GET /v1/products/#{id}.json
  • ☑️ PUT /v1/products/#{id}.json
  • ☑️ GET /v1/stocks.json
  • ✅ GET /v1/categories.json
  • ✅ GET /v1/payments.json
  • ☑️ GET /v1/deliveries.json
  • ☑️ GET /v1/deliveries/date.json
  • ☑️ GET /v1/gifts.json
  • ☑️ GET /logout

対応Rubyバージョン

  • 2.1.0
  • 2.0.0
  • 1.9.3

インストール

Gemfileに以下の内容の追加してbundleコマンドを実行してください。

gem 'color_me', github: 's-osa/color_me'

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/s-osa/color_me/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

テスト

基本的なテストは以下のコマンドで実行できます。

$ bundle exec rake spec

また、実際のAPIを用いたテストが以下のコマンドで行えます。

$ echo "YourOwnToken" > token
$ bundle exec rake spec:online

token ファイルは.gitignoreに含まれていますが、typoなどによるcommitに注意してください。

color_me's People

Contributors

s-osa avatar

Stargazers

UEHARA Kenichi avatar kamiya54 avatar ikedahidenori avatar

Watchers

James Cloos avatar kamiya54 avatar  avatar UEHARA Kenichi avatar  avatar

Forkers

kamiya54 yuuna

color_me's Issues

全件取得メソッドをget_allからgetに。

基本的には条件に一致するものを全件取得したいと思うので、get_allメソッドをgetメソッドにリネームして使いやすくする。

getメソッドには別名をつける。
partial_getとか?

ID指定取得

  • GET /v1/sales/#{id}.json
  • GET /v1/products/#{id}.json

あたりを。

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.