{"id":508,"date":"2010-08-03T12:55:04","date_gmt":"2010-08-03T12:55:04","guid":{"rendered":"http:\/\/tw.newtonstudio.com\/?p=508"},"modified":"2010-08-03T12:58:08","modified_gmt":"2010-08-03T12:58:08","slug":"%e5%ad%98%e5%8f%96gmail%e7%9a%84%e9%80%9a%e8%a8%8a%e9%8c%84","status":"publish","type":"post","link":"http:\/\/tw.newtonstudio.com\/?p=508","title":{"rendered":"\u5b58\u53d6GMAIL\u7684\u901a\u8a0a\u9304"},"content":{"rendered":"<p>\u6700\u8fd1\u56e0\u70ba\u5c08\u6848\u9700\u6c42,<\/p>\n<p>\u9700\u8981\u5f9eGMAIL\u4e2d\u5b58\u53d6\u901a\u8a0a\u9304 (contacts),<\/p>\n<p>\u89ba\u5f97\u9019\u4efd\u6559\u5b78\u5beb\u7684\u9084\u4e0d\u932f:<\/p>\n<p><a href=\"http:\/\/code.google.com\/intl\/zh-TW\/apis\/contacts\/docs\/3.0\/developers_guide_protocol.html\">http:\/\/code.google.com\/intl\/zh-TW\/apis\/contacts\/docs\/3.0\/developers_guide_protocol.html<\/a><\/p>\n<p>\u8207ATOM\u7684\u6e9d\u901a\u53ef\u4ee5\u4f7f\u7528PHPCLASS\u4e2d\u7684ATOM builder:<\/p>\n<p><a href=\"http:\/\/www.phpclasses.org\/package\/2745-PHP-Generate-Atom-1-0-XML-feeds.html\">http:\/\/www.phpclasses.org\/package\/2745-PHP-Generate-Atom-1-0-XML-feeds.html<\/a><\/p>\n<p>\u6e9d\u901a\u7684\u65b9\u5f0f\u53ef\u4ee5\u7528PHP \u7684Socket Programming\u65b9\u5f0f\u53bb\u8207https\u9023\u63a5\u57e0\u6e9d\u901a:<\/p>\n<p>\u8a8d\u8b49:<\/p>\n<pre style=\"font-family: monospace; color: #007000; font-size: 9pt; background-color: #fafafa; line-height: 15px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; overflow-x: auto; overflow-y: auto; word-wrap: break-word; padding: 0.99em; border: 1px solid #bbbbbb;\">https:\/\/www.google.com\/accounts\/ClientLogin<\/pre>\n<pre style=\"font-family: monospace; color: #007000; font-size: 9pt; background-color: #fafafa; line-height: 15px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; overflow-x: auto; overflow-y: auto; word-wrap: break-word; padding: 0.99em; border: 1px solid #bbbbbb;\">The\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">POST<\/code> body should contain a set of query parameters that look like parameters passed by an HTML form, using the\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">application\/x-www-form-urlencoded<\/code>content type. These parameters are:\r\n<table style=\"border-collapse: collapse; line-height: 16px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 1px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; clear: right; border: 1px solid #bbbbbb;\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\">\r\n<tbody>\r\n<tr>\r\n<th style=\"text-align: left; vertical-align: top; font-weight: bold; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #e5ecf9; border: 1px solid #bbbbbb;\">Parameter<\/th>\r\n<th style=\"text-align: left; vertical-align: top; font-weight: bold; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #e5ecf9; border: 1px solid #bbbbbb;\">Description<\/th>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\"><code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">accountType<\/code><\/td>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\">Type of account to be authenticated. The default is\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">GOOGLE<\/code>; if you want to support Google Apps users, use\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">HOSTED_OR_GOOGLE<\/code>.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\"><code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">Email<\/code><\/td>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\">The user's email address.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\"><code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">Passwd<\/code><\/td>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\">The user's password.<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\"><code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">service<\/code><\/td>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\">The service name for contacts feeds is\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">cp<\/code>. (For other service names, see the\u00a0<a style=\"color: #0000cc;\" href=\"http:\/\/code.google.com\/support\/bin\/answer.py?answer=62712&amp;topic=10433\">service name list<\/a>.)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\"><code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">source<\/code><\/td>\r\n<td style=\"text-align: left; vertical-align: top; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; background-color: #ffffff; border: 1px solid #bbbbbb;\">Identifies your client application. Should take the form\u00a0<em>companyName<\/em>-<em>applicationName<\/em>-<em>versionID<\/em>. The examples use the name\u00a0<code style=\"font-family: monospace; color: #007000; font-size: 10pt;\">exampleCo-exampleApp-1<\/code>.<\/td>\r\n<\/tr>\r\n<\/tbody><\/table>\r\nFor more information about the parameters, see the\u00a0<a style=\"color: #0000cc;\" href=\"http:\/\/code.google.com\/apis\/accounts\/docs\/AuthForInstalledApps.html#Request\">Authentication for Installed Applications<\/a> document.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u56e0\u70ba\u5c08\u6848\u9700\u6c42, \u9700\u8981\u5f9eGMAIL\u4e2d\u5b58\u53d6\u901a\u8a0a\u9304 (contacts), \u89ba\u5f97\u9019\u4efd\u6559\u5b78\u5beb\u7684\u9084\u4e0d\u932f: http: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[168],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-google-api"],"_links":{"self":[{"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":2,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":510,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/510"}],"wp:attachment":[{"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}