{"id":953,"date":"2012-08-14T08:30:26","date_gmt":"2012-08-14T00:30:26","guid":{"rendered":"http:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=953"},"modified":"2012-08-15T12:47:14","modified_gmt":"2012-08-15T04:47:14","slug":"google-apps-%e9%81%a0%e7%ab%af%e7%ae%a1%e7%90%86%ef%bc%8c%e9%80%8f%e9%81%8e-provisioning-api","status":"publish","type":"post","link":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=953","title":{"rendered":"Google Apps \u9060\u7aef\u7ba1\u7406\uff0c\u900f\u904e Provisioning API"},"content":{"rendered":"<p>\u81ea\u5df1\u64b0\u5beb\u7a0b\u5f0f\u5f9e\u9060\u7aef\u7ba1\u7406 Google Apps\uff0c\u5fc5\u9808\u900f\u904e Provisioning API \u3002<\/p>\n<p>\u555f\u7528 API \u5b58\u53d6\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>    \u767b\u5165\u60a8\u7684\u7ba1\u7406\u63a7\u5236\u53f0\u3002<\/li>\n<li>    \u6309\u4e00\u4e0b [\u7db2\u57df\u8a2d\u5b9a] > [\u4f7f\u7528\u8005\u8a2d\u5b9a]\u3002<\/li>\n<li>    \u5982\u8981\u4f7f\u7528 Provisioning API\uff1a\u52fe\u9078 [\u555f\u7528 Provisioning API] \u65c1\u7684\u65b9\u584a\u3002<\/li>\n<li>    \u6309\u4e00\u4e0b [\u5132\u5b58\u8b8a\u66f4]\u3002 <\/li>\n<\/ul>\n<p><!--more--><br \/>\n\u63a5\u4e0b\u4f86\u4f60\u8981\u9078\u4e00\u7a2e\u6163\u7528\u7684\u7a0b\u5f0f\u8a9e\u8a00\uff0c\u7528\u4f86\u547c\u53eb Provisioning API\u3002<br \/>\n\u8a9e\u8a00\u5305\u62ec PHP\u3001Python\u3001Java\u3001.Net C#\u3002<br \/>\n\u9019\u88e1\u6709\u975e\u5e38\u591a Provisioning API \u7684\u547c\u53eb\u7bc4\u4f8b\uff1a<a href=\"https:\/\/developers.google.com\/google-apps\/provisioning\/?hl=zh-TW#getting_started\">Google Apps Provisioning API<\/a><\/p>\n<p>\u76ee\u524d PHP \u9700\u8981\u642d\u914d ZendFramework\uff0c\u4e0d\u904e\u4e0d\u77e5\u70ba\u4f55\uff0c\u6211\u5728 FreeBSD 9 (32\/64 bit) \u4e2d\u57f7\u884c\u6703\u4e00\u76f4\u767c\u751f segment fault\u3002\u4e4b\u524d\u5728 FreeBSD 8 \u4e0a\u5247\u5f88\u6b63\u5e38\u3002<\/p>\n<p>\u4f7f\u7528 Python \u7684sample\u547c\u53eb\u67d0\u4e9b API\uff0c\u5247\u6703\u8981\u6c42\u4f60\u8f38\u5165 client id \u53ca client secret\u3002<br \/>\n\u53d6\u5f97\u7684\u65b9\u6cd5\u662f\u5230 <a href=\"https:\/\/code.google.com\/apis\/console\">Google APIs Console<\/a> \u5148\u8a3b\u518a\u4e00\u500b Project\u3002\u9019\u500b\u5176\u5be6\u5c31\u662f\u900f\u904e OAuth \u5728\u6c92\u6709\u500b\u5225\u4f7f\u7528\u8005\u7684\u5e33\u865f\u5bc6\u78bc\u7684\u60c5\u6cc1\u4e0b\uff0c\u5b58\u53d6\u4ed6\u5011\u67d0\u4e9b\u7279\u5b9a\u7684\u8cc7\u6599\uff0c\u4f8b\u5982\u901a\u8a0a\u9304\u7b49\u3002Google \u70ba\u4e86\u907f\u514d\u6feb\u7528\uff0c\u9019\u4e9b\u5b58\u53d6\u662f\u6709\u6578\u91cf\u9650\u5236\u7684\uff0c\u5982\u679c\u8981\u5927\u91cf\u4f7f\u7528\u983b\u5bec\uff0c\u5247\u5fc5\u9808\u4ed8\u8cbb\u3002<br \/>\n\u5728 Google APIs Console \u88e1\u9762\uff0c\u4e00\u500b Project \u6700\u591a\u53ef\u4ee5\u8a2d\u5b9a 7 \u500b client IDs\u3002<\/p>\n<p>\u5982\u679c\u53ea\u662f\u8981\u505a\u4e00\u4e9b\u6bd4\u8f03\u7c21\u55ae\u7684\u61c9\u7528\uff0c\u4f8b\u5982\u5bc4\u4fe1\u7d66\u8cc7\u6599\u8868\u4e2d\u7684\u67d0\u4e9b\u4eba\uff0c\u5728\u4fe1\u4e2d\u4f7f\u7528\u7279\u5b9a\u7684\u7a31\u547c\uff08\u4f8b\u5982\u5c0f\u9686\u5148\u751f\u60a8\u597d\uff09\uff0c\u800c\u4e0d\u50cf\u5bc4\u767c\u5927\u91cf\u5ee3\u544a\u4fe1\uff0c\u5247\u53ef\u4ee5\u6709\u66f4\u7c21\u55ae\u7684\u65b9\u6cd5\u3002\u5373\u662f\u5728 Google \u96f2\u7aef\u786c\u789f\u4e2d\uff0c\u64b0\u5beb Google Scripts\u3002\u9019\u4e9b Google Scripts \u662f\u4f7f\u7528 JavaScript\u3002<\/p>\n<p>\u5728\u9019\u88e1\u6709\u5b98\u65b9\u6240\u63d0\u4f9b\u7684\u8a31\u591a\u7bc4\u4f8b\u53ca\u53c3\u8003\u6587\u4ef6\uff1a<br \/>\n<a href=\"https:\/\/developers.google.com\/google-apps\/?hl=zh-TW\">Google Apps Platform<\/a><\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=953\" action=\"like\" colorscheme=\"light\" layout=\"standard\" show-faces='false' width=\"450px\" size=\"small\"><\/fb:like><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5df1\u64b0\u5beb\u7a0b\u5f0f\u5f9e\u9060\u7aef\u7ba1\u7406 Google Apps\uff0c\u5fc5\u9808\u900f\u904e Provisionin &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=953\"> <span class=\"screen-reader-text\">Google Apps \u9060\u7aef\u7ba1\u7406\uff0c\u900f\u904e Provisioning API<\/span> \u95b1\u8b80\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts\/953"}],"collection":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=953"}],"version-history":[{"count":4,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts\/953\/revisions"}],"predecessor-version":[{"id":971,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts\/953\/revisions\/971"}],"wp:attachment":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}