Project

memair

0.0
No commit activity in last 3 years
No release in over 3 years
An SDK for Memair allowing easy querying of the GraphQL API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.17
 Project Readme

Gem License Gregology Downloads

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"}}}