Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 777 Bytes

File metadata and controls

40 lines (25 loc) · 777 Bytes

Notion::API

A Ruby client for submitting data to Notion.

CircleCI

Installation

Add this line to your application's Gemfile:

gem 'notion-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install notion-api

Usage

client = Notion::API.connect(api_token: YOUR_API_TOKEN_HERE)
client.report(
  ingredient_id: INGREDIENT_ID_FROM_DASHBOARD,
  date: "2016-10-28",
  value: 42.24
)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/notion-data/notion-api.

License

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