Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slack API, get current location

Is there any method to get current user location. Let say I created some "slash" command /map. When I am calling this command - POST message being send to my nodejs server, and server returns some json data.

{
    "channel": "#map", 
    "username": "test", 
    "unfurl_links": true,
    "icon_emoji": ":world_map:",
        "attachments": [
        {
            "fallback": "Required plain-text summary of the attachment.",
            "pretext": "Beautiful Personalized Map Sharing",
            "image_url": "http://static.mapjam.com/yrjkbmb/auto/640x480.jpg",
            "thumb_url": "http://static.mapjam.com/yrjkbmb/auto/640x480.jpg"
        }
    ]
}

Because I am authenticated I am able to get some Slack user info:

  • username
  • email etc..

How can I access Slack user lat, long if it is possible though

like image 906
ssuperczynski Avatar asked Mar 22 '26 07:03

ssuperczynski


1 Answers

Currently there is nothing available in the user info to get the geographical position of a user from the Slack API.

Please refer to the Users Info Slack API documentation and the User Type documentation.

like image 188
Cheesebaron Avatar answered Mar 24 '26 00:03

Cheesebaron