使用 Coldfusion 以编程方式访问 Google Voice Java API

发布于 2024-12-05 01:43:47 字数 1416 浏览 0 评论 0原文

谁能告诉我如何使用 Coldfusion 访问 Google Voice Java API 并与之交互?

  1. 具体来说,我如何访问 API jar 文件?

  2. 我如何通过 Coldfusion 的 Java 功能以编程方式访问这些文件/类?例如,在 CFC 中,我需要调用哪些 java 类/函数?

  3. 更基本的是,Java API jar 需要安装在哪个 Coldfusion 文件夹中?

Stackoverflow 成员 @GuidDoody 提到他能够在此处成功使用 Java API 与 Coldfusion:CFHTTP用于发布到 Google Voice“API”的内容长度标头。但具体如何操作,并没有详细说明!

或者,我是否最好只使用 CFHTTP 以编程方式“破解”登录和数据捕获序列?

这是我迄今为止搜索过的资源。但我需要有关执行上述步骤 1 - 3 的帮助:

  1. Google Voice Java API 操作方法:http://code.google.com/p/google-voice-java/wiki/GettingStarted

  2. Java API 字符串值对:http://www.google.com/support/ forum/p/voice/thread?tid=7d165bcdbdba6464&hl=en

  3. @GuidDoody 使用 CFHTTP:用于发布到 Google Voice“API”的 CFHTTP 内容长度标头

谢谢

Jason

Can anyone tell me how to use Coldfusion to access and interact with the Google Voice Java API?

  1. Specifically how would I access API jar files?

  2. How would I programtically access these files/classes via Coldfusion's Java capabilities? For example within a CFC what java classes/functions would I need to call?

  3. Even more basic, in which coldfusion folder would the Java API jar need to be installed?

Stackoverflow member @GuidDoody mentioned he was able to successfully use the Java API with Coldfusion here: CFHTTP Content-Length Header for post to Google Voice "API" . However, no details were given as to how!

Alternatively, am I better off just using CFHTTP to "hack" a log-in and data capture sequence programamtically?

Here is are the resources I've searched so far. But I need help on doing steps 1 - 3 above :

  1. Google Voice Java API How to: http://code.google.com/p/google-voice-java/wiki/GettingStarted

  2. Java API string value pairs: http://www.google.com/support/forum/p/voice/thread?tid=7d165bcdbdba6464&hl=en

  3. @GuidDoody's use of CFHTTP: CFHTTP Content-Length Header for post to Google Voice "API"

Thanks

Jason

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

千纸鹤带着心事 2024-12-12 01:43:47

我认为 Mark Mandel 的 JavaLoader 就是您正在寻找的: http://javaloader.riaforge.org/

这是一个我如何使用它来使用 Evernote API jar 文件的示例:

//first create an array of locations to your jar files
jarArray = ["#libDirectory#/CFEvernote.jar","#libDirectory#/evernote-api-1.18.jar","#libDirectory#/libthrift.jar"];

//then create an instance of the classloader and pass it your jar array
classLoader = createObject("component", "JavaLoader").init(jarArray );

//then use the classloader.create method to create a new java object
note = classLoader.create("com.evernote.edam.type.Note").init();    

I think Mark Mandel's JavaLoader is what you are looking for: http://javaloader.riaforge.org/

Here's an example of how I used it to use the Evernote API jar files:

//first create an array of locations to your jar files
jarArray = ["#libDirectory#/CFEvernote.jar","#libDirectory#/evernote-api-1.18.jar","#libDirectory#/libthrift.jar"];

//then create an instance of the classloader and pass it your jar array
classLoader = createObject("component", "JavaLoader").init(jarArray );

//then use the classloader.create method to create a new java object
note = classLoader.create("com.evernote.edam.type.Note").init();    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文