Skip to content

Instantly share code, notes, and snippets.

@roberthopman
roberthopman / wip_graphql_demo.rb
Created October 25, 2018 13:36 — forked from skatkov/wip_graphql_demo.rb
Ruby example of creating a todo and then completing it using wip.chat graphql.
# NOTE: Be sure to set the API key further down in the code!
require "net/http"
require "uri"
require "json"
class WIP
def initialize(api_key:)
@api_key = api_key
end
require 'pp'
require 'upwork/api'
# require 'upwork/api/routers/auth'
# require 'upwork/api/routers/organization/users'
require 'upwork/api/routers/jobs/search'
# step 1
config = Upwork::Api::Config.new({
'consumer_key' => 'x',
'consumer_secret' => 'x',