0.0
No commit activity in last 3 years
No release in over 3 years
It is a simple client of cybozu kintone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 3.0.0

Runtime

 Project Readme

Kintone::Client

It is a simple client of cybozu kintone.

Installation

Add this line to your application's Gemfile:

gem 'kintone-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kintone-client

Usage

require 'kintone/client'

client = Kintone::Client.new(subdomain: "xxx", login_name: "Genki Sugawara", password: "...")

# https://cybozudev.zendesk.com/hc/ja/articles/202931674-%E3%82%A2%E3%83%97%E3%83%AA%E6%83%85%E5%A0%B1%E3%81%AE%E5%8F%96%E5%BE%97
p client.app.get(id: 211)
p client.records.get(app: 211)

# https://cybozudev.zendesk.com/hc/ja/articles/202166220-%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9%E3%81%AE%E3%83%A1%E3%83%B3%E3%83%90%E3%83%BC%E3%81%AE%E5%8F%96%E5%BE%97
p client.space.members.get(id: 4)

# `"文字列__1行"=>"テスト"` -> `"文字列__1行"=>{"value"=>"テスト"}`
client.record.post_json(
  {"app"=>1972,
   "record"=>
    {"文字列__1行"=>"テスト",
     "文字列__複数行"=>"テスト\nテスト2",
     "数値"=>20,
     "日時"=>"2014-02-16T08:57:00Z",
     "チェックボックス"=>{"value"=>["sample1", "sample2"]},
     "ユーザー選択"=>{"value"=>[{"code"=>"sato"}]},
     "ドロップダウン"=>"sample1",
     "リンク_ウェブ"=>"https://www.cybozu.com",
     "Table"=>{"value"=>[{"value"=>{"テーブル文字列"=>{"value"=>"テスト"}}}]}}})

kintone API