def connection
      @connection ||= Faraday.new 'https://api.groupme.com/' do |f|
        f.request :json
        f.headers[:user_agent] = GroupMe::USER_AGENT
        f.headers['X-Access-Token'] = @token

        # f.response :logger
        f.response :mashify
        f.response :json, :content_type => /\bjson$/

        f.adapter Faraday.default_adapter
      end
    end
def connection
      @connection ||= Faraday.new 'https://api.groupme.com/' do |f|
        f.request :json
        f.headers[:user_agent] = GroupMe::USER_AGENT
        f.headers['X-Access-Token'] = @token

        # f.response :logger
        f.response :mashify
        f.response :json, :content_type => /\bjson$/

        f.adapter Faraday.default_adapter
      end
    end
Returns a Faraday::Connection object

 @return [Faraday::Connection]