เลิกใช้งานแล้ว: Sites API เลิกใช้งานแล้วและอาจหยุดทำงานได้ทุกเมื่อ Sites API จะเข้าถึงได้เฉพาะ
Sites แบบคลาสสิกเท่านั้น Sites API ไม่สามารถเข้าถึง
Sites เวอร์ชันที่สร้างใหม่ซึ่งเปิดตัวไปเมื่อวันที่ 22 พฤศจิกายน 2016 ได้
ไลบรารีของไคลเอ็นต์และโค้ดตัวอย่าง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ไลบรารีของไคลเอ็นต์ข้อมูลของ Google มีไว้เพื่อช่วยคุณเขียนแอปพลิเคชันไคลเอ็นต์ที่ใช้ Sites Data API
สำหรับแต่ละภาษา ไลบรารีของไคลเอ็นต์จะมีเครื่องมือและเลเยอร์ Abstraction ให้คุณสร้างข้อความค้นหาและ
ใช้ข้อมูลการตอบกลับโดยไม่ต้องสร้างคำขอ HTTP หรือประมวลผลการตอบกลับ HTTP ด้วยตนเอง ไลบรารีของไคลเอ็นต์แต่ละรายการมี
คลาสที่สอดคล้องกับองค์ประกอบและประเภทข้อมูลที่ API ใช้ ไลบรารีเหล่านี้ยังมีส่วนขยายสำหรับ
บริการบางอย่างของ Google ที่มี Data API
ไลบรารีของไคลเอ็นต์ไม่ได้เชื่อมโยงกับ API เวอร์ชันที่ระบุ ไลบรารีของไคลเอ็นต์มีการเข้าถึง
เวอร์ชันต่างๆ ของ API และให้คุณระบุเวอร์ชันที่จะพัฒนา เวอร์ชันของ API ที่ไลบรารีของไคลเอ็นต์แต่ละรายการรองรับ
แสดงอยู่ในตารางด้านล่าง
ไลบรารีไคลเอ็นต์
โค้ดตัวอย่าง
โปรแกรมตัวอย่างเหล่านี้สาธิตวิธีใช้ API และไลบรารีของไคลเอ็นต์ ใช้ลิงก์เหล่านี้เพื่อช่วยคุณเริ่มต้นใช้งาน
บทแนะนำ
บทความที่จะช่วยให้คุณเริ่มต้นใช้งานได้อย่างรวดเร็ว แก้ไขข้อบกพร่อง หรือใช้ภาษาที่คุณชื่นชอบกับ Google Data API
กลับไปด้านบน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-02 UTC
[null,null,["อัปเดตล่าสุด 2024-09-02 UTC"],[[["\u003cp\u003eGoogle provides client libraries for Java and Python to simplify interaction with the Sites Data API, offering tools and abstraction for building queries and handling responses without manual HTTP request management.\u003c/p\u003e\n"],["\u003cp\u003eThese client libraries are versatile, supporting multiple API versions (currently v1.4) and offering specific extensions for various Google services with Data APIs.\u003c/p\u003e\n"],["\u003cp\u003eSample programs in Java and Python, along with a collection of tutorials, are readily available to guide developers in utilizing the API and client libraries effectively.\u003c/p\u003e\n"]]],["Google Data client libraries aid in building applications for the Sites Data API. They offer tools and abstraction, simplifying query construction and response handling. Libraries support multiple API versions, including v1.4, without being tied to a specific version. Java and Python libraries are available, with sample code and resources such as getting started guides, project links (GitHub), and developer guides. Tutorials cover topics like Eclipse integration, Rails, gadgets, cURL, proxy servers, and debugging.\n"],null,["# Client Libraries and Sample Code\n\nGoogle Data client libraries are available to help you write client applications that use the Sites Data API.\n\nFor each language, the client library provides tools and an abstraction layer, letting you construct queries and\nuse response data without having to create HTTP requests or process HTTP responses by hand. Each client library provides\nclasses that correspond to the elements and data types that the API uses. The libraries also provide extensions for\nspecific Google services that have Data APIs.\n\nClient libraries are not tied to a specific version of the API. Client libraries include access to all the\nversions of the API and let you specify a version to develop against. The API versions supported by each client library\nare listed in the table below.\n\nClient Libraries\n----------------\n\n| | Latest Library | API Versions Supported by the Client Library | Reference Docs | Resources |\n|------------|-------------------------------------------------------------------------|----------------------------------------------|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Java** | [Download](http://code.google.com/p/gdata-java-client/downloads/list) | v1.4 | [Javadoc](/gdata/javadoc) | - [Getting Started Guide](/gdata/articles/java_client_lib) - [Using Eclipse with the Java Client Library](/gdata/articles/eclipse) - [Java Client Library Project](https://github.com/google/gdata-java-client) (GitHub) - [Java Language Developer's Guide](/workspace/sites/docs/1.0/developers_guide_java) |\n| **Python** | [Download](http://code.google.com/p/gdata-python-client/downloads/list) | v1.4 | [PyDoc](https://github.com/google/gdata-python-client/tree/master/pydocs) | - [Getting Started Guide](/gdata/articles/python_client_lib) - [Python Client Library Project](https://github.com/google/gdata-python-client) (GitHub) - [Python Language Developer's Guide](/workspace/sites/docs/1.0/developers_guide_python) |\n\nSample code\n-----------\n\nThese sample programs demonstrate how to use the API and the client libraries. Use them to help you get started!\n\n- **Java**\n - [Google Sites Import / Export Tool](https://code.google.com/archive/p/google-sites-liberation/)\n - [Command-line sample using the client library](https://github.com/google/gdata-java-client/tree/master/java/sample/sites)\n- **Python**\n - [Command-line sample using the client library](https://github.com/google/gdata-python-client/tree/master/samples/sites)\n- **Other**\n - [Google Data API Tips Blog](http://gdatatips.blogspot.com/search/label/sites)\n\nTutorials\n---------\n\nArticles to help you get up and running quickly, debug problems or use your favorite language with Google Data APIs.\n\n- [Eclipse with the Java client library](/gdata/articles/eclipse)\n- [Google Data on Rails](/gdata/articles/gdata_on_rails)\n- [Creating a Google Data Gadget](/gdata/articles/gdata_gadgets)\n- [Using cURL to interact with Google Data services](/gdata/articles/using_cURL)\n- [Using Proxy Servers with the Google Data client libraries](/gdata/articles/proxy_setup)\n- [Network Capture Tools for API debugging](/gdata/articles/wireshark)\n- [Debugging Google Data clients: Exploring Traffic from Within your Program](/gdata/articles/debugging_client_libs)\n\n[Back to top](#top_of_page)"]]