从“通过 LinkedIn 申请”接收数据

发布于 2024-12-07 13:27:11 字数 586 浏览 0 评论 0原文

我正在使用“通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-12-14 13:27:11

这有帮助吗?

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文