Finding my user id

770 views
Skip to first unread message

William Reed

unread,
Aug 5, 2015, 9:54:35 PM8/5/15
to GroupMe API Support
Hey guys I am following along the PUSH tutorial here https://dev.groupme.com/tutorials/push and I am up to subscribing to the user channel. This step uses the code:

[
 
{
   
"channel":"/meta/subscribe",
   
"clientId":"1c5k4zq1mycffe161kgqp13gnvvn",
   
"subscription":"/user/<userid>",
   
"id":"2",
   
"ext":
     
{
       
"access_token":"<your API access token>",
       
"timestamp":1322556419
     
}
 
}
]

My question is where do I find my user id? Also if I were able to find the user id of a different person is this possible to see there messages? I hope that is not true but I am curious. 

Dave (GroupMe)

unread,
Aug 5, 2015, 10:38:25 PM8/5/15
to GroupMe API Support
On Wednesday, August 5, 2015 at 9:54:35 PM UTC-4, William Reed wrote:
My question is where do I find my user id?

With your access token, you can hit https://api.groupme.com/v3/users/me to find your user ID.
 
Also if I were able to find the user id of a different person is this possible to see there messages?

No. Your access token will only allow you to subscribe to your own messages. 
Reply all
Reply to author
Forward
0 new messages