Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
167 views
in Technique[技术] by (71.8m points)

javascript - 如何在API中获取回调参数(How to get callback parameter in API [closed])

Is there any solution to get the parameters in call URI ?

(有什么解决方案可以获取调用URI中的参数吗?)

Here is my workflow : a user is registrating to a form and then is redirect to an URL I have a URL like this : www.domain-name.com?id_connection=15&code=PRDXXX And when my user land in this page, i'm supposed to make a POST with the PRDXXX to transform a temporary token in definitive token.

(这是我的工作流程:用户正在注册到表单,然后重定向到URL我有这样的URL:www.domain-name.com?id_connection=15&code=PRDXXX当我的用户进入此页面时,我m应该与PRDXXX进行POST,以将临时令牌转换为确定令牌。)

Am I supposed to work with the URI to get the code ( for example try a window.location.pathname or something like this) or there is a shortcut solution ?

(我是否应该使用URI来获取代码(例如,尝试使用window.location.pathname或类似的名称),或者有一个快捷解决方案?)

Thanks

(谢谢)

  ask by Damien Compère translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...