slack user-id

0

I have created a bot and integrated with slack following the instructions. The bot works as expected and posts to a lambda for fulfilment.

In the lambda i see as part of the request:'x-amz-lex:user-id' which i expect to be the slack user id but its not in the normal slack format of something like UXXXXXX but is a long int such as 'x-amz-lex:user-id': '396498713242.12.691123599936'. How do i translate this to the real slack userid so i can look up the profile for that user?

thanks

Andrew

AMC777
已提問 5 年前檢視次數 394 次
1 個回答
0

My mistake i was looking at the x-amz-lex:user-id and the user-id field

thanks

Andrew

AMC777
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南