Memair
SDK for simple interaction with the Memair APIs
Installation
Add this line to your application's Gemfile:
gem 'memair'
And then execute:
$ bundle
Or install it yourself as:
$ gem install memair
Example
>> require 'memair'
=> True
>> access_token = "0" * 64 # Otto is Memair's sandbox user
=> "0000000000000000000000000000000000000000000000000000000000000000"
>> user = Memair.new(access_token)
=> #<Memair:0x00007f8a3fa657e0 @access_token="0000000000000000000000000000000000000000000000000000000000000000">
>> query = """
query get_user_details {
UserDetails {
email
}
}
"""
=> "\nquery get_user_details {\n UserDetails {\n email\n }\n}\n"
>> response = user.query(query)
=> {"data"=>{"UserDetails"=>{"email"=>"otto@memair.com"}}}