lib/smart_todo/slack_client.rb
def lookup_user_by_email(email)
      headers = { "Content-Type" => "application/x-www-form-urlencoded" }

      request(:get, "/api/users.lookupByEmail?email=#{CGI.escape(email)}", nil, headers)
    end
# Retrieve the Slack ID of a user from his email
#
# @param email [String]
# @return [Hash]
#
# @raise [Net::HTTPError] in case the request to Slack failed
# @raise [SlackClient::Error] in case Slack returns a { ok: false } in the body
#
# @see https://api.slack.com/methods/users.lookupByEmail
Retrieve the Slack ID of a user from his email
Retrieve the Slack ID of a user from his email
def lookup_user_by_email(email)
      headers = { "Content-Type" => "application/x-www-form-urlencoded" }
      request(:get, "/api/users.lookupByEmail?email=#{CGI.escape(email)}", nil, headers)
    end
def lookup_user_by_email ( email ) headers = { "Content-Type" => "application/x-www-form-urlencoded" } request ( :get , "/api/users.lookupByEmail?email=#{CGI.escape(email)}" , nil , headers ) end
Retrieve the Slack ID of a user from his email
Retrieve the Slack ID of a user from his email
None
Hash
[Net::HTTPError] in case the request to Slack failed
[ Net :: HTTPError ] in case the request to Slack failed
[SlackClient::Error] in case Slack returns a { ok: false } in the body
[ SlackClient :: Error ] in case Slack returns a { ok : false } in the body
email
None
see
None