Google Voice Add-on Development
(137 posts) (40 voices)-
A few people have already asked me how to place calls or send SMS messages using Google Voice via HTTP or XML request. It is pretty much the same way as in GrandCentral, except some of the addresses have changed.
Here is what I use in my Google Voice Firefox addon:
Logging in:
Google's ClientLogin API
POST /accounts/ClientLogin accountType=GOOGLE&Email=[google account]&Passwd=[google password]&service=grandcentral&source=[your app name]
This will return an error or set of authorization tokens. Save the Auth token and send it back with each request.
Placing Calls:
POST /voice/call/connect/ outgoingNumber=[number to call]&forwardingNumber=[forwarding number]&subscriberNumber=undefined&phoneType=[phone type]&remember=0&_rnr_se=[pull from page]
Phone Types:
1) Home
2) Mobile
3) Work
7) Gizmo
Canceling Calls:
POST /voice/call/cancel/ outgoingNumber=undefined&forwardingNumber=undefined&cancelType=C2C&_rnr_se=[pull from page]
Sending an SMS:
POST /voice/sms/send/ id=&phoneNumber=[number to text]&text=[URL Encoded message]&_rnr_se=[pull from page]
Inbox XML:
https://www.google.com/voice/inbox/recent/inbox/
Starred Calls XML:
https://www.google.com/voice/inbox/recent/starred/
All Calls XML:
https://www.google.com/voice/inbox/recent/all/
Spam XML:
https://www.google.com/voice/inbox/recent/spam/
Trash XML:
https://www.google.com/voice/inbox/recent/trash/
Voicemail XML:
https://www.google.com/voice/inbox/recent/voicemail/
SMS XML:
https://www.google.com/voice/inbox/recent/sms/
Recorded Calls XML:
https://www.google.com/voice/inbox/recent/recorded/
Placed Calls XML:
https://www.google.com/voice/inbox/recent/placed/
Received Calls XML:
https://www.google.com/voice/inbox/recent/received/
Missed Calls XML:
https://www.google.com/voice/inbox/recent/missed/
XML Pagination:
?page=p2
?page=p3
etc..
Downloading a Voice Message:
https://www.google.com/voice/media/send_voicemail/[message id]
Deleting a Voice Message:
POST /voice/inbox/deleteMessages/ messages=[message id]&trash=1&_rnr_se=[pull from page]
Mark a message as read:
POST /voice/inbox/mark/ messages=[message id]&read=1&_rnr_se=[pull from page]
Mark a message as unread:
POST /voice/inbox/mark/ messages=[message id]&read=0&_rnr_se=[pull from page]
Voicemail Transcript Timing:
https://www.google.com/voice/media/transcriptWords?id=[message id]Posted 11 months ago # -
Anyone care to test something for me?
Features of version v0.0.1pre:
- Click to Call
- Dial from Task Bar
- Display most recent recent missed call when hovered
Posted 11 months ago # -
Wow! Great timing! I just installed the test add-on. Not sure how much use I'll be able to throw at it today, but I'll keep you posted.
Posted 11 months ago # -
I now see some phone numbers on some pages as live links...when I click on one of them, I get a "Confirm" popup showing to and from numbers (the from number IS my correct #)...but when I click "OK" nothing happens.
-- merged --
I see none of the screens shown as screenshots on your website.
-- merged --
Nothing shows up in the status bar.
I'm going to try it on my wife's Mac OS 10.4.__ which has Firefox 3. will post results here at 'Post Topic'.
-- merged --
Now have it installed on my wife's Mac OS 10.4.__ which has Firefox 3. Still the same result...no "OK" button on OPTIONS screen; on the status bar at the bottom of the screen, there's a GV icon with the message "email and password missing from settings". But they are in the OPTIONS screen (no "OK" button to activate them).
-- merged --
Update: Now that I've finally noticed that GV icon and message on my wife's Mac, I just checked my (older) Mac again, and it does indeed have a GV icon with the message "Incorrect login or password."
Posted 10 months ago # -
Hey Chad, Great Job! Thanks for the Add On.
Bug?:
When dialing from Add On menu, phone numbers entered without area code... receive vocal notification that there will be a charge of XX¢/min. With area code, seems to work for free... at least there is no vocal warning of charges.Question:
Who is providing the vocal warning/ charging for the calls?Posted 10 months ago # -
The warning is coming from Google Voice and not the addon. It sounds like a bug on their end, but either way you should probably dial all 10 digits.
Posted 10 months ago # -
Hello again, Chad...The absence of the 'OK'button on the Google Voice Options screen seems to be the only thing standing in the way of the add-on working on both of our Macs:
OS X 10.4.11/Firefox 3.0.7
OS X 10.3.9/Firefox 2.0.0.20
Have you had any reports of success or failure from other Mac users? Do you think I should ask the question on the Google Voice Help Forum...or should I hold off on that for now?
Thanks...
Posted 10 months ago # -
Chad, would it be possible to add the ability of click to call to the sidebar? I've created a list of frequently called numbers from the sidebar that I'd like to keep open all the time and this would make life much easier.
Thanks
Josh
Posted 10 months ago # -
This is what I get every time I use this Google Voice. I used the grandcentral add on without any problems what so ever. I even disabled every add on that I had on firefox! Help!!!
An unknown error occurred
[Exception... "'[JavaScript Error: "this._storage is null" {file: "file:///C:/Program%20Files/Mozilla%20Firefox/components/nsLoginManager.js" line: 464}]' when calling method: [nsILoginManager::findLogins]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://google-voice/content/google-voice.js :: anonymous :: line 928" data: yes]Posted 10 months ago # -
It sounds like that might be a bug with Firefox rather than the addon, because the error is in nsLoginManager.js. What version of Firefox and the addon are you using?
Try going to Firefox's password manager (Tools -> Options -> Security -> Saved Passwords) and delete anything saved for chrome://google-voice. Chances are there are multiple passwords saved and one of them contains an empty field.
Posted 10 months ago # -
Chad, any idea about working with the sidebar?
Thanks
Josh
Posted 10 months ago # -
I have the newest version of Firefox and also I have the newest version you have of Google Voice . I went to the password area and it doesn't have any passwords there...which is odd because I have all my passwords stored through Firefox.
Posted 10 months ago # -
@Chad...
"...Try going to Firefox's password manager (Tools -> Options -> Security -> Saved Passwords) and delete anything saved for chrome://google-voice..."
Did so...(deleted 3 items)re-entered ID & password...Now it's working!...on Firefox 2.
Later I'll try the same on my wife's Firefox 3...let you know.
Thanks for your patient follow-up!
P.S.: "GOOGLE VOICE OPTIONS" screen still doesn't look like your screenshot...no "OK" button is showing.
P.P.S.: No cookies are presently showing for chrome://google-voice.
Posted 10 months ago # -
@JoshFink
I replied to your feature request here. I am still working on something for you.@accordkyd
Did this addon work before, or has it always done that?@elphanet
Cookies will not show for chrome://google-voice. Only passwords. Did the OK button show up when you disabled the other addons?Posted 10 months ago # -
Beta Release: v0.2.0b1
- Double-clicking your number in the status bar will place a call if a phone number is selected, send the selection as a text message if not, or will rescan for numbers if nothing is selected
- Text messages can now be sent via the addon status bar context menu
- Removed "Hangup" from the context menu
Please test the addon and provide feedback here so I can release it.A minor issue this version has is it still says "Called: 43 minutes ago" or whatever even when the last "call" was a text message. I hope to have this changed to Called/Text Message/Voicemail/Missed Call/Received sometime over the next week.
Posted 10 months ago # -
Yes GrandCentral worked fine on my firefox. This one will not work.. not even with the new beta release.
Posted 10 months ago # -
@Chad...
"Cookies will not show for chrome://google-voice. Only passwords"...
OK.
Correction to my previous post: I now see a new password entry for chrome://google-voice"Did the OK button show up when you disabled the other addons?"
No, it's never shown up. In addition, the colored 'frame' around the screen has never show up.Posted 10 months ago # -
Chad, is there any way to do like it does on the Google Voice webpage? Where you click on the call button and you start typing and it narrows down the list of contacts and you can call or SMS from there?
Don't get me wrong, love the plugin, just making suggestions.
Josh
Posted 10 months ago # -
@accordkyd & elphanet
Both your issues sound like problems with your Firefox profile. Try creating a new profile and install the addon there. If that doesn't work let me know.@elphanet
The OK button should appear which is why I think there's an issue with your Firefox profile. I am still waiting to hear back from other Mac users to see if they have similar issues. From what I've heard, no one has, which is why I believe the issue is in your Firefox installs. There is no colored border missing. That is just how Firefox looks in Windows Vista.@JoshFink
While it might be possible, it would slow down the addon considerably and would require a complete rewrite of the addon dialogs. The "Dial..." feature is really a side item to the click-to-call functionality.Posted 10 months ago # -
Thanks for the update Chad. I appreciate the help...
Posted 10 months ago # -
It works like a charm
Now what do I do about putting it on my original profile? I have my firefox so tweeked til it ain't funny! I also use Mozbackup if that is any help...
Posted 10 months ago # -
@Chad...
"Try creating a new profile and install the addon there"...Did so, and it's working well.
"The OK button should appear"...Still no 'OK' button...[button, button, who's got the button
]Will now progressively download/install extensions.
Thanks for all your help!
Update 1: downloaded theme/installed/re-started...GV Add-on still works, but now, when I click on the number in the status bar, it's opening thatsmith.com in a new window.., and I must hold the right mouse button in order to access the context menu.
Update 2: downloaded QuickZoom/installed/re-started...GV Add-on still works...and now rightclicking the number does bring up the menu...
Update 3: downloaded InformEnter/installed/re-started...GV Add-on still works...
Update 4: Installed 4 more add-ons......GV Add-on still works, but again, when I rightclick on the number in the status bar, it's opening thatsmith.com in a new tab [correction to previous report: NOT in a new window]...
Posted 10 months ago # -
@elphanet
I appreciate your enthusiasm, however there is no need to keep updating unless you get the addon to work. Please wait until we hear from another Mac user to see if they have a similar issue.Posted 10 months ago # -
so now that I have got gv to work in firefox by creating a new profile... do i need to reinstall all my addons to that profile?
Posted 10 months ago # -
@Chad...Understood.
It's working on Firefox 2 under a new profile.
Glitch: every time I open a new window, it opens five tabs in that window.
Posted 10 months ago # -
@accordkyd
Sounds like you will need to since the other profile was corrupt. I'm not sure if mozbackup does that or not.@elphanet
The 5 tabs and That Smith issues are likely on your end only. Usually you have to right click and go to "About..." to open That Smith. It is the bottom option though, so maybe you're clicking too fast?Posted 10 months ago # -
@Chad...Yep, the 5 tabs thing was fixed via Firefox/Preferences under the new profile; the That Smith issue has for now corrected itself, but it's come & gone several times; when it does take me to That Smith, the mouse pointer cannot get below the "About...", so right clicking just opens thatsmith.com instead of the menu.
Everything seems to be working well now on Mac 10.3.9/Firefox 2.0.0.20 [despite the missing 'OK' button]. Still haven't tried correcting it on the Mac 10.4/Firefox 3, but probably similar profile issues there.
Appears you're due for some coffee (or beer
).
Posted 10 months ago # -
Installing the new version will update the old one, so there's no need to uninstall first.
Posted 10 months ago #
Reply »
You must log in to post.