英文:
Unable to Find Steam UMQID for Chat Message
问题
使用Golang,我正在尝试通过Steam发送聊天消息。发送请求的要求如下:
jsonp: jQuery1111021217753615295387_1460262983441
<- 我能够获取到这个值umqid: 6271781725479270872
<- 我无法理解这是什么以及如何获取它。type: saytext
<- 我能够获取到这个值steamid_dst: 76561198208696745
<- 我能够获取到这个值text: foobar
<- 我能够获取到这个值access_token: 87e689c612b38f535a4d2b645b3aa3a7
<- 我能够获取到这个值_: 1460262983442
<- 我能够获取到这个值
我理解所有所需的变量,并且能够使用它们,除了UMQID变量。我已经反复查看了Steam的JavaScript源代码,试图弄清楚它的值是什么以及它是如何生成的,但我还是无法理解。
我甚至查看了其他人的Golang源代码(第211行),它正好实现了我想要的功能,但我仍然无法弄清楚他们是如何获得UMQID的。
如果有人能够解释如何获取UMQID,以便我可以发送https://api.steampowered.com/ISteamWebUserPresenceOAuth/Message/v0001/来发送Steam消息,我将非常感激。
英文:
Using Golang, I am trying to send a chat message through Steam. The requirements for the post are
-
jsonp: jQuery1111021217753615295387_1460262983441
<- I am able to get this one -
umqid: 6271781725479270872
<- I am unable to understand what this is and how to retreive it. -
type: saytext
<- I am able to get this one -
steamid_dst: 76561198208696745
<- I am able to get this one -
text: foobar
<- I am able to get this one -
access_token: 87e689c612b38f535a4d2b645b3aa3a7
<- I am able to get this one -
_: 1460262983442
<- I am able to get this one
I understand all the variables required and am able to use them except for the UMQID variable. I have been through Steam's javascript source code over and over trying to figure out what the value of it is and how they generate the value but I haven't managed to understand it.
I've even been through someone else's Golang source code (line 211) which does exactly what I am aiming for but I still can't even figure out how they got the UMQID.
If anyone could explain how I am able to get the UMQID so I can post https://api.steampowered.com/ISteamWebUserPresenceOAuth/Message/v0001/ to send a Steam message, it would be greatly appreciated.
答案1
得分: 0
你可以看到他通过调用https://api.steampowered.com/ISteamWebUserPresenceOAuth/Logon/v0001/来解码它,链接在https://github.com/Zemnmez/geothermal/blob/master/chat/chat.go#L158。
英文:
You can see he's decoding it by making a call to https://api.steampowered.com/ISteamWebUserPresenceOAuth/Logon/v0001/ at https://github.com/Zemnmez/geothermal/blob/master/chat/chat.go#L158
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论