<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>榆树网 &#187; API</title>
	<atom:link href="http://www.wenzk.com/archives/tag/api/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenzk.com</link>
	<description>http://www.wenzk.com</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:57:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Voice API</title>
		<link>http://www.wenzk.com/archives/394</link>
		<comments>http://www.wenzk.com/archives/394#comments</comments>
		<pubDate>Sat, 10 Oct 2009 07:10:29 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google Voice]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=394</guid>
		<description><![CDATA[hanks to the post inhttp://posttopic.com/topic/google-voice-add-on-development it should be easy to develop applications that use Google Voice platform. The API is a simple REST API that POSTs requests to the Google Voice portal: Placing Calls:POST /voice/call/connect/ outgoingNumber=[number to call]&#38;forwardingNumber=[forwarding number]&#38;subscriberNumber=undefined&#38;remember=0&#38;_rnr_se=[pull from page] Canceling Calls:POST /voice/call/cancel/ outgoingNumber=undefined&#38;forwardingNumber=undefined&#38;cancelType=C2C&#38;_rnr_se=[pull from page] Sending an SMS:POST /voice/sms/send/ id=&#38;phoneNumber=[number to text]&#38;text=[URL Encoded [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #555555; font-family: Verdana,'BitStream vera Sans',Helvetica,sans-serif; font-size: 12px; line-height: 17px;"> </span></p>
<p style="margin: 0px 0px 10px; padding: 0px; text-align: justify;">hanks to the post in<a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" title="GV API" href="http://posttopic.com/topic/google-voice-add-on-development" target="_blank">http://posttopic.com/topic/google-voice-add-on-development</a><span> </span>it should be easy to develop applications that use Google Voice platform. The API is a simple REST API that POSTs requests to the Google Voice portal:</p>
<p><span id="more-394"></span></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Placing Calls:</strong><br style="margin: 0px; padding: 0px;" />POST /voice/call/connect/ outgoingNumber=[number to call]&amp;forwardingNumber=[forwarding number]&amp;subscriberNumber=undefined&amp;remember=0&amp;_rnr_se=[pull from page]</p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Canceling Calls:</strong><br style="margin: 0px; padding: 0px;" />POST /voice/call/cancel/ outgoingNumber=undefined&amp;forwardingNumber=undefined&amp;cancelType=C2C&amp;_rnr_se=[pull from page]</p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Sending an SMS:</strong><br style="margin: 0px; padding: 0px;" />POST /voice/sms/send/ id=&amp;phoneNumber=[number to text]&amp;text=[URL Encoded message]&amp;_rnr_se=[pull from page]</p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Inbox XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/inbox/">https://www.google.com/voice/inbox/recent/inbox/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Starred Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/starred/">https://www.google.com/voice/inbox/recent/starred/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">All Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/all/">https://www.google.com/voice/inbox/recent/all/</a></p>
<p><span style="color: #555555; font-family: Verdana,'BitStream vera Sans',Helvetica,sans-serif; font-size: 12px; line-height: 17px;"> </span></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Spam XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/spam/">https://www.google.com/voice/inbox/recent/spam/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Trash XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/trash/">https://www.google.com/voice/inbox/recent/trash/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Voicemail XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/voicemail/">https://www.google.com/voice/inbox/recent/voicemail/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">SMS XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/sms/">https://www.google.com/voice/inbox/recent/sms/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Recorded Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/recorded/">https://www.google.com/voice/inbox/recent/recorded/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Placed Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/placed/">https://www.google.com/voice/inbox/recent/placed/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Received Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/received/">https://www.google.com/voice/inbox/recent/received/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;"><strong style="margin: 0px; padding: 0px;">Missed Calls XML:</strong><br style="margin: 0px; padding: 0px;" /><a style="margin: 0px; padding: 0px; color: #2970a6; text-decoration: none;" rel="nofollow" href="https://www.google.com/voice/inbox/recent/missed/">https://www.google.com/voice/inbox/recent/missed/</a></p>
<p style="margin: 0px 0px 10px; padding: 0px;">转自：<a href="http://adriel.dynalias.com/blog/?p=252">http://adriel.dynalias.com/blog/?p=252</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1019" title="终于可以在家接听Google Voice的电话了">终于可以在家接听Google Voice的电话了</a> (0)</li><li><a href="http://www.wenzk.com/archives/391" title="Data Export API &#8211; Protocol">Data Export API &#8211; Protocol</a> (0)</li><li><a href="http://www.wenzk.com/archives/217" title="终于注册成功Google Voice">终于注册成功Google Voice</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/394/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Export API &#8211; Protocol</title>
		<link>http://www.wenzk.com/archives/391</link>
		<comments>http://www.wenzk.com/archives/391#comments</comments>
		<pubDate>Sat, 10 Oct 2009 07:07:54 +0000</pubDate>
		<dc:creator>ELM</dc:creator>
				<category><![CDATA[榆树网-网络]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.wenzk.com/?p=391</guid>
		<description><![CDATA[摘自：http://code.google.com/intl/zh-CN/apis/analytics/docs/gdata/1.0/gdataProtocol.html Example Account Feed Request USER_EMAIL="" #Insert your Google Account email here USER_PASS="" #Insert your password here googleAuth="$(curl https://www.google.com/accounts/ClientLogin -s \ -d Email=$USER_EMAIL \ -d Passwd=$USER_PASS \ -d accountType=GOOGLE \ -d source=curl-accountFeed-v1 \ -d service=analytics \ &#124; awk /Auth=.*/)" feedUri="https://www.google.com/analytics/feeds/accounts/default\ ?prettyprint=true" curl $feedUri -s --header "Authorization: GoogleLogin $googleAuth" Retrieving Report Data USER_EMAIL="" #Insert your Google [...]]]></description>
			<content:encoded><![CDATA[<p>摘自：http://code.google.com/intl/zh-CN/apis/analytics/docs/gdata/1.0/gdataProtocol.html</p>
<p><span id="more-391"></span></p>
<pre>
<h3>Example Account Feed Request</h3>

USER_EMAIL="" #Insert your Google Account email here
  USER_PASS="" #Insert your password here

  googleAuth="$(curl https://www.google.com/accounts/ClientLogin -s \
    -d Email=$USER_EMAIL \
    -d Passwd=$USER_PASS \
    -d accountType=GOOGLE \
    -d source=curl-accountFeed-v1 \
    -d service=analytics \
    | awk /Auth=.*/)"

  feedUri="https://www.google.com/analytics/feeds/accounts/default\
  ?prettyprint=true"

  curl $feedUri -s --header "Authorization: GoogleLogin $googleAuth"
<h2 id="retrievingData">Retrieving  Report Data</h2>
<pre>USER_EMAIL="" #Insert your Google Account email address here
USER_PASS="" #Insert your password here
PROFILE_ID="" #Insert your profile ID here

googleAuth="$(curl https://www.google.com/accounts/ClientLogin -s \
  -d Email=$USER_EMAIL \
  -d Passwd=$USER_PASS \
  -d accountType=GOOGLE \
  -d source=curl-accountFeed-v1 \
  -d service=analytics \
  | awk /Auth=.*/)"

feedUri="https://www.google.com/analytics/feeds/data\
?start-date=2008-10-01\
&amp;end-date=2008-10-31\
&amp;dimensions=ga:source,ga:medium\
&amp;metrics=ga:visits,ga:bounces\
&amp;sort=-ga:visits\
&amp;filters=ga:medium%3D%3Dreferral\
&amp;max-results=5\
&amp;ids=ga:$PROFILE_ID\
&amp;prettyprint=true"

curl $feedUri -s --header "Authorization: GoogleLogin $googleAuth"</pre>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.wenzk.com/archives/1245" title="解决Android下Google Maps无法通过GSM基站定位问题">解决Android下Google Maps无法通过GSM基站定位问题</a> (0)</li><li><a href="http://www.wenzk.com/archives/1019" title="终于可以在家接听Google Voice的电话了">终于可以在家接听Google Voice的电话了</a> (0)</li><li><a href="http://www.wenzk.com/archives/886" title="如何让Firefox自动使用HTTPS访问Google">如何让Firefox自动使用HTTPS访问Google</a> (0)</li><li><a href="http://www.wenzk.com/archives/883" title="Google拼音输入法无法同步用户词典和设置，提示：网络错误">Google拼音输入法无法同步用户词典和设置，提示：网络错误</a> (0)</li><li><a href="http://www.wenzk.com/archives/869" title="Google搜索启用https安全连接了">Google搜索启用https安全连接了</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wenzk.com/archives/391/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

