我正在尝试编写一个 Google 语音应用程序,想知道是否有人知道使用直接访问号码而不是回铃来拨打电话的 url 和 post 参数。
小智 6
例如,要调用1-800-555-0111,请输入
https://voice.google.com/u/0/calls?a=nc,%2B18005550111
Run Code Online (Sandbox Code Playgroud)
我没有测试它,但检查这个API: http: //code.google.com/p/google-voice-java/
特别是第711 行voice.java,它是方法:
public String call(String originNumber, String destinationNumber,
String phoneType) throws IOException {
Run Code Online (Sandbox Code Playgroud)
在第 737 行,他们使用:
URL callURL = new URL("https://www.google.com/voice/call/connect/");
Run Code Online (Sandbox Code Playgroud)
这些方法的完整注释如下:
// POST /voice/call/connect/
// outgoingNumber=[number to call]
// &forwardingNumber=[forwarding number]
// &subscriberNumber=undefined
// &phoneType=[phone type from google]
// &remember=0
// &_rnr_se=[pull from page]
Run Code Online (Sandbox Code Playgroud)
我希望这有帮助。
我认为没有官方 API,但该网站似乎在您所追求的网址方面取得了一些进展: http: //posttopic.com/topic/google-voice-add-on-development,并且有这里有一个非官方 API: http: //sourceforge.net/projects/gvoicedotnet/
| 归档时间: |
|
| 查看次数: |
5096 次 |
| 最近记录: |