从“通过 LinkedIn 申请”接收数据
我正在使用“通过 LinkedIn 申请”按钮中的“数据网址”选项。我的 data-url 指向我的控制器中的操作。使用“通过 LinkedIn 申请”按钮完成申请后,我可以确认我的操作已被执行,但我不知道如何接收数据。我的应用程序是用 C# 和 MVC3 构建的。
https://developer.linkedin.com/application-response-data-struct 这是来自 LinkedIn 的响应示例,我以 JSON 形式接收它,但我不知道如何接受这样的 JSON。
https://developer.linkedin.com/processing-results-code-samples 这里有一些关于如何解析它的示例,但它们似乎解析帖子正文而不是 JSON,所以我有点困惑。
任何帮助将不胜感激
I am using the Data-Url option in the Apply With LinkedIn button. I have the data-url pointing to an action in my controller. I can confirm that my action is being hit after I complete an application using the Apply with LinkedIn button, however I don't know how to receive the data. My application is built in C# and MVC3.
https://developer.linkedin.com/application-response-data-structure
Here is an example of the response from LinkedIn, I am receiving it as a JSON but I have no idea how to accept a JSON like that one.
https://developer.linkedin.com/processing-results-code-samples
Here are some examples on how to parse it but they seem to parse a post body and not a JSON so i'm a bit confused.
Any help would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有帮助吗?
http:// /weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx
向下滚动到标题为“JavaScript 和 AJAX 改进”的部分。
我们正在做的事情类似于我们通过 AJAX 向您发送 JSON 的 HTTP POST(即使它不是通过 AJAX 发送的,但您的脚本不应该关心)。
我不是 C# 人员,但这似乎就是您正在寻找的。
Does this help?
http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx
Scroll down to the part titled "JavaScript and AJAX Improvements".
What we're doing is similar to if we were sending you an HTTP POST of JSON via AJAX (even if it's not coming via AJAX, but your script shouldn't care).
I'm not a C# guy, but that seems to be what you're looking for.