简体   繁体   English

是否可以在离线时与linkedin api 共享消息

[英]is it possible to share a message when offline with linkedin api

is it possible to store the id of a user who grants permission to accept the app and then post a "share" when the user completes an action but they are not logged into linkedin?是否可以存储授予接受应用程序权限的用户的 ID,然后在用户完成操作但未登录到linkedin 时发布“共享”? i have done this with facebook but currently struggling to get my head around the oauth/linked in libraries.我已经用 facebook 做到了这一点,但目前正在努力让我的头脑围绕库中的 oauth/链接。

Yes, once the user has authorized your application, you can store the user's oauth tokens and use those to update LinkedIn via the API when a user trigers a share/update, etc.是的,一旦用户授权您的应用程序,您可以存储用户的 oauth 令牌,并在用户触发共享/更新等时通过 API 使用这些令牌更新 LinkedIn。

The only trick is to cover yourself in the case that the user rejects your application's access rights;唯一的技巧是在用户拒绝您的应用程序访问权限的情况下保护自己; filter all responses from the LinkedIn API looking for an error indicating that the access token is no longer valid (you should be doing this filtering anyways for throttling issues).过滤来自 LinkedIn API 的所有响应,寻找指示访问令牌不再有效的错误(无论如何,您都应该针对限制问题进行此过滤)。

LINKEDIN API has no proper documentation..as to how i can use it..sample code which is provided SKuS LINKEDIN API 没有适当的文档..关于我如何使用它..提供 SkuS 的示例代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM