How can I detect who I am.

74 views
Skip to first unread message

kmrs...@gmail.com

unread,
Mar 5, 2014, 12:47:32 AM3/5/14
to slac...@googlegroups.com
Hello

I'm trying to create a strategy of omniauth for slack.


Slack API doesn't provide the method to ask "who am I", do it?
For now, we can retrieve profiles of users by users.list method. 
But, it returns all member's profile. So I can't detect who allow to access.

Why don't you provide "/me" method as bellow?

Facebook Graph API

--
Shintaro Kimura

Cal Henderson

unread,
Mar 5, 2014, 2:07:26 AM3/5/14
to slac...@googlegroups.com
On 3/4/2014 9:47 PM, kmrs...@gmail.com wrote:
> I'm trying to create a strategy of omniauth for slack.
>
> https://github.com/kmrshntr/omniauth-slack
>
> Slack API doesn't provide the method to ask "who am I", do it?

Try calling `auth.test` with a valid token. I will document this!


--cal

kmrs...@gmail.com

unread,
Mar 5, 2014, 8:17:49 AM3/5/14
to slac...@googlegroups.com

Try calling `auth.test` with a valid token. I will document this!

Thanks!
 
Reply all
Reply to author
Forward
0 new messages