We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
由于 ColdFusion 可以创建和使用 Java 对象,因此最简单的解决方案是使用 Java API 访问 LinkedIn。一种选择是 linkedin-j。
更新
我还没有发现任何基于 CF 的包装器的证据,所以不幸的是你必须弄清楚这一部分。
您无需真正了解 Java 的工作原理即可在 ColdFusion 中使用 Java 对象;您只需要知道相关 API 中的类是什么,然后创建必要的对象,然后调用相关函数。我假设 linkedin-j 提供某种 .jar 文件。您需要将其添加到您的类路径中;网上有大量关于如何执行此操作的资源(如果该链接中断,只需搜索
coldfusion jar 类路径
)。然后,找出您需要的对象,使用CreateObject
创建您需要的该对象的实例。入门页面讨论了
LinkedInApiClientFactory
目的。您可以在 ColdFusion 中通过执行类似的操作来创建此内容,此时您可以使用 LinkedInApiClient 可用的所有功能,例如
getProfileByUrl
。使用 linkedin-j 站点上提供的文档来了解您可以在 LinkedInApiClient 上调用的函数,并从那里开始工作。
Since ColdFusion can create and use Java objects, the easiest solution is to use a Java API to access LinkedIn. One option is linkedin-j.
Update
I haven't found any evidence of a CF-based wrapper so unfortunately you're going to have to figure this part out.
You don't need to really know how Java works to use Java objects in ColdFusion; you just have to know what the classes are in the API in question and then create the necessary objects and then call the relevant functions. I assume linkedin-j offers some kind of .jar file. You need to add that to your classpath; there are plenty of resources on line on how to do this (if that link breaks, just search for
coldfusion jar classpath
). Then, figure out which object you need, create an instance of that object you need usingCreateObject
.The getting started page talks about a
LinkedInApiClientFactory
object. You'd create this in ColdFusion by doing something likeAt which point you can use all of the functions available to the LinkedInApiClient, such as
getProfileByUrl
.Use the documentation available at the linkedin-j site to find out about the functions you can call on the LinkedInApiClient, and work from there.