def megam_rest
            options = {
              :email => email,
              :api_key => api_key,
              :org_id => org_id,
              :password_hash => password_hash,
              :master_key => master_key,
              :host => host
            }
            if headers
              options[:headers] = headers
            end
            Megam::API.new(options)
        end
def megam_rest
            options = {
              :email => email,
              :api_key => api_key,
              :org_id => org_id,
              :password_hash => password_hash,
              :master_key => master_key,
              :host => host
            }
            if headers
              options[:headers] = headers
            end
            Megam::API.new(options)
        end
clean up this module later.
 Build a megam api client

 === Parameters
 api:: The Megam::API client