lib/nimbu-api/authentication.rb
def client(options={})
      @client ||= ::OAuth2::Client.new(client_id, client_secret,
        {
          :site          => options.fetch(:site) { Nimbu.site },
          :authorize_url => 'login/oauth/authorize',
          :token_url     => 'login/oauth/access_token',
          :ssl           => { :verify => false }
        }
      )
    end
def client(options={})
      @client ||= ::OAuth2::Client.new(client_id, client_secret,
        {
          :site          => options.fetch(:site) { Nimbu.site },
          :authorize_url => 'login/oauth/authorize',
          :token_url     => 'login/oauth/access_token',
          :ssl           => { :verify => false }
        }
      )
    end
Setup OAuth2 instance