使用直接访问号码拨打Google语音电话的网址是什么? [英] What is the URL to make a Google Voice call using the direct access number?

查看:496
本文介绍了使用直接访问号码拨打Google语音电话的网址是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写Google语音应用,并且想知道是否有人知道使用直接访问号码而不是回铃来拨打电话和发布参数。

I am trying to write a Google Voice app and was wondering if anyone knew the url and post parameters to make a call using the direct access number instead of the ring-back.

推荐答案

我没有测试它,但检查这个api: http://code.google.com/p/google-voice-java/

I did not test it, but check this api: http://code.google.com/p/google-voice-java/

特别是 voice.java 第711行,这是方法:

public String call(String originNumber, String destinationNumber,
                        String phoneType) throws IOException {

第737行中,他们使用:

URL callURL = new URL("https://www.google.com/voice/call/connect/");

并且方法的完整评论说:

and the full comments for the methods say:

            // 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]

我希望这有帮助。

这篇关于使用直接访问号码拨打Google语音电话的网址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆