class Mirah::Graphql::AuthorizedHttp

A graplql executor which will supply the correct HTTP headers to authenticate with Mirah servers.

Public Instance Methods

headers(context) click to toggle source
# File lib/mirah/graphql.rb, line 15
def headers(context)
  {
    "API_USER_ID": context[:user_id],
    "API_KEY": context[:access_token]
  }
end