<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2475" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>Post Topic &#187; Tag: code - Recent Topics</title>
		<link>http://posttopic.com/tags/code</link>
		<description>Open For Discussion</description>
		<language>en-US</language>
		<pubDate>Sat, 31 Jul 2010 15:46:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2475</generator>
				<atom:link href="http://posttopic.com/rss/tags/code/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>Chad Smith on "Google Voice Add-on Development"</title>
			<link>http://posttopic.com/topic/google-voice-add-on-development#post-27</link>
			<pubDate>Thu, 12 Mar 2009 17:22:38 +0000</pubDate>
			<dc:creator>Chad Smith</dc:creator>
			<guid isPermaLink="false">27@http://posttopic.com/</guid>
			<description><![CDATA[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.<br />
<br />
Here is what I use in my <a href="http://thatsmith.com/2009/03/google-voice-add-on-for-firefox/">Google Voice Firefox addon</a>:<br />
<br />
<strong>Logging in:</strong><br />
Google's <a href="http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html">ClientLogin API</a><br />
POST /accounts/ClientLogin accountType=GOOGLE&#038;Email=[google account]&#038;Passwd=[google password]&#038;service=grandcentral&#038;source=[your app name]<br />
<br />
This will return an error or set of authorization tokens. Save the Auth token and send it back with each request.<br />
<br />
<strong>Placing Calls:</strong><br />
POST /voice/call/connect/ outgoingNumber=[number to call]&#038;forwardingNumber=[forwarding number]&#038;subscriberNumber=undefined&#038;phoneType=[phone type]&#038;remember=0&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Phone Types:</strong><br />
1) Home<br />
2) Mobile<br />
3) Work<br />
7) Gizmo<br />
<br />
<strong>Canceling Calls:</strong><br />
POST /voice/call/cancel/ outgoingNumber=undefined&#038;forwardingNumber=undefined&#038;cancelType=C2C&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Sending an SMS:</strong><br />
POST /voice/sms/send/ id=&#038;phoneNumber=[number to text]&#038;text=[URL Encoded message]&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Inbox XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/inbox/" rel="nofollow">https://www.google.com/voice/inbox/recent/inbox/</a><br />
<br />
<strong>Starred Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/starred/" rel="nofollow">https://www.google.com/voice/inbox/recent/starred/</a><br />
<br />
<strong>All Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/all/" rel="nofollow">https://www.google.com/voice/inbox/recent/all/</a><br />
<br />
<strong>Spam XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/spam/" rel="nofollow">https://www.google.com/voice/inbox/recent/spam/</a><br />
<br />
<strong>Trash XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/trash/" rel="nofollow">https://www.google.com/voice/inbox/recent/trash/</a><br />
<br />
<strong>Voicemail XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/voicemail/" rel="nofollow">https://www.google.com/voice/inbox/recent/voicemail/</a><br />
<br />
<strong>SMS XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/sms/" rel="nofollow">https://www.google.com/voice/inbox/recent/sms/</a><br />
<br />
<strong>Recorded Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/recorded/" rel="nofollow">https://www.google.com/voice/inbox/recent/recorded/</a><br />
<br />
<strong>Placed Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/placed/" rel="nofollow">https://www.google.com/voice/inbox/recent/placed/</a><br />
<br />
<strong>Received Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/received/" rel="nofollow">https://www.google.com/voice/inbox/recent/received/</a><br />
<br />
<strong>Missed Calls XML:</strong><br />
<a href="https://www.google.com/voice/inbox/recent/missed/" rel="nofollow">https://www.google.com/voice/inbox/recent/missed/</a><br />
<br />
<strong>XML Pagination:</strong><br />
?page=p2<br />
?page=p3<br />
etc..<br />
<br />
<strong>Downloading a Voice Message:</strong><br />
<a href="https://www.google.com/voice/media/send_voicemail/">https://www.google.com/voice/media/send_voicemail/</a>[message id]<br />
<br />
<strong>Deleting a Voice Message:</strong><br />
POST /voice/inbox/deleteMessages/ messages=[message id]&#038;trash=1&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Mark a message as read:</strong><br />
POST /voice/inbox/mark/ messages=[message id]&#038;read=1&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Mark a message as unread:</strong><br />
POST /voice/inbox/mark/ messages=[message id]&#038;read=0&#038;_rnr_se=[pull from page]<br />
<br />
<strong>Voicemail Transcript Timing:</strong><br />
<a href="https://www.google.com/voice/media/transcriptWords?id=">https://www.google.com/voice/media/transcriptWords?id=</a>[message id]]]></description>
					</item>

	</channel>
</rss>
