在iOS应用程序中,我需要通过iOS应用程序与LinkedIn共享URL,并且LinkedIn本机应用程序未安装在设备中。我需要在没有安装LinkedIn应用程序的情况下共享URL请指导我如何cabn我做同样的事情
the different options are detailed under: https://developer.linkedin.com/docs/share-on-linkedin
just call a customized URL with openURL:
.
the format of the url is described by the linkedIn Developer Docs:
example:
https://www.linkedin.com/shareArticle?mini=true&url=http://developer.linkedin.com&title=LinkedIn%20Developer%20Network&summary=My%20favorite%20developer%20program&source=LinkedIn
eg call via NSURLSession
https://api.linkedin.com/v1/people/~/shares?format=json
and pass JSON body
eg
{
"comment": "Check out developer.linkedin.com! http://linkd.in/1FC2PyG",
"visibility": {
"code": "anyone"
}
}
Note that with the REST API, you need to register your app with linkedin (all described in the docs)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.