No commit activity in last 3 years
No release in over 3 years
Idobata public GraphQL API client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

IdobataGraphQL

Idobata public GraphQL API client.

Installation

% gem install idobata_graph_ql

Usage

% export IDOBATA_TOKEN=<YOUR_TOKEN_HERE>

Then

require 'idobata_graph_ql'

p IdobataGraphQL.query('query { viewer { name } }')
# {"viewer"=>{"name"=>"idobata-fs"}}

room_id = IdobataGraphQL.rooms.first.id
p IdobataGraphQL.create_message(room_id, "hi")
# {"createMessage"=>{"clientMutationId"=>nil}}