Google Data APIs के सैंपल
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
चेतावनी: यह पेज, Google के पुराने एपीआई, Google Data API के बारे में है. यह सिर्फ़ उन एपीआई के लिए काम का है जो Google Data API डायरेक्ट्री में शामिल हैं. इनमें से कई एपीआई को नए एपीआई से बदल दिया गया है. किसी खास नए एपीआई के बारे में जानकारी पाने के लिए, उस नए एपीआई का दस्तावेज़ देखें. नए एपीआई की मदद से अनुरोधों को अनुमति देने के बारे में जानकारी पाने के लिए, Google खातों के लिए पुष्टि करने और अनुमति देने की सुविधा लेख पढ़ें.
इस पेज पर, सैंपल कोड के बारे में जानकारी और लिंक दिए गए हैं.
सामग्री
- JavaScript के सैंपल
- JSON सैंपल
- गैजेट के सैंपल
- Java के सैंपल
- .NET के सैंपल
- अन्य भाषाएं
JavaScript के सैंपल
JavaScript क्लाइंट लाइब्रेरी का इस्तेमाल, वेब ब्राउज़र से किया जा सकता है. इससे Base Data API, Blogger Data API, Calendar Data API, Contacts Data API, और Finance Data API के साथ इंटरैक्ट किया जा सकता है.
ध्यान दें: इस सेक्शन में पहले मौजूद सैंपल हटा दिए गए हैं. ऐसा इसलिए, क्योंकि वे ऐसे एपीआई और/या पुष्टि करने के तरीकों पर निर्भर थे जो अब उपलब्ध नहीं हैं.
JSON के सैंपल
ये लाइव सैंपल हैं. इन्हें देखने के लिए क्लिक करें. ज़्यादा जानकारी के लिए, Google Data API के साथ JSON का इस्तेमाल करना लेख पढ़ें.
Google Calendar
- Calendar में आने वाले इवेंट
- इस सैंपल में, Calendar Data API से मिले JSON आउटपुट फ़ॉर्मैट का इस्तेमाल करके, वेब पेज पर Google Calendar के आने वाले इवेंट की सूची दिखाने का तरीका बताया गया है.
Blogger
- Blogger की नई पोस्ट
- इस सैंपल में, Blogger Data API से मिले JSON आउटपुट फ़ॉर्मैट का इस्तेमाल करके, Blogger Beta पर होस्ट किए गए ब्लॉग की हाल ही की पोस्ट की सूची दिखाने का तरीका बताया गया है.
स्प्रेडशीट
- Google Spreadsheets का डेटा पढ़ना
- इस सैंपल में, Spreadsheet Data API के JSON आउटपुट फ़ॉर्मैट का इस्तेमाल करके, वेब पेज पर Google शीट का डेटा दिखाया गया है.
गैजेट के सैंपल
Google Data API गैजेट बनाने के बारे में ज़्यादा जानकारी के लिए, Google Data गैजेट बनाना या OAuth गैजेट लिखना से जुड़ा पूरा दस्तावेज़ देखें.
- Blogger गैजेट
- YouTube गैजेट
Java के सैंपल
क्लाइंट लाइब्रेरी के साथ बंडल किए गए सैंपल
ये सैंपल, डाउनलोड की जा सकने वाली Java क्लाइंट लाइब्रेरी पैकेज में मिल सकते हैं. ज़्यादा जानकारी के लिए, Java क्लाइंट लाइब्रेरी के डेवलपर के लिए बनी गाइड पढ़ें या Java क्लाइंट लाइब्रेरी डाउनलोड करें.
- java/sample/authsub/
- GData AuthSub प्रॉक्सी, जिसे Java सर्वलेट का इस्तेमाल करके लागू किया गया है; प्रॉक्सी के ज़रिए डेटा ऐक्सेस करने वाला JavaScript क्लाइंट का सैंपल.
- java/sample/calendar/
- यह एक सामान्य क्लाइंट है, जो Google Calendar में कई तरह के बदलाव करता है.
- java/sample/codesarch/
- Google Code Search data API से क्वेरी करने के लिए कमांड लाइन क्लाइंट.
- java/sample/spreadsheet/
- Google Spreadsheet API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
- java/sample/appsforyourdomain/
- G Suite API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
- java/sample/blogger/
- Blogger API का इस्तेमाल करने वाले ऐप्लिकेशन के सैंपल.
- java/sample/contacts/
- Google Contacts API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- java/sample/docs/
- Google Doclist API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
- java/sample/gbase/
- Google Base API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- java/sample/photos/
- Picasa Web Albums API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- java/sample/sidewiki/
- Google Sidewiki API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- java/sample/webmastertools/
- Webmaster API का इस्तेमाल करने वाले ऐप्लिकेशन के सैंपल.
- java/sample/youtube/
- YouTube API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
- YouTubeSample ASP page
- क्लाइंट लाइब्रेरी का इस्तेमाल करके, वीडियो खोजने और अपलोड करने का उदाहरण.
.NET के सैंपल
क्लाइंट लाइब्रेरी के साथ बंडल किए गए सैंपल
ये सैंपल, डाउनलोड की जा सकने वाली .NET क्लाइंट लाइब्रेरी पैकेज में मिल सकते हैं. ज़्यादा जानकारी के लिए, .NET क्लाइंट लाइब्रेरी के डेवलपर के लिए गाइड देखें या .NET क्लाइंट लाइब्रेरी डाउनलोड करें.
- clients/cs/samples/blogger/
- Blogger API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- clients/cs/samples/calendar/
- Google Calendar Data API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- clients/cs/samples/spreadsheets/
- Google Sheets API का इस्तेमाल करने वाले ऐप्लिकेशन के उदाहरण.
- clients/cs/samples/DocListUploader/
- Google Docs में दस्तावेज़ अपलोड करता है.
- clients/cs/samples/DocListExporter/
- Google दस्तावेज़ों को अलग-अलग फ़ॉर्मैट में एक्सपोर्ट करता है.
- clients/cs/samples/PhotoBrowser/
- Picasa Web Albums API का इस्तेमाल करने वाले ऐप्लिकेशन के सैंपल.
- clients/cs/samples/YouTubeSample/
- YouTube API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
- clients/cs/samples/appsforyourdomain/
- G Suite API का इस्तेमाल करने वाले सैंपल ऐप्लिकेशन.
अन्य उदाहरण
- Contacts Updater
- यह WPF का सैंपल है. इसमें Contacts API का इस्तेमाल करके, अपने संपर्कों को पढ़ने और अपडेट करने का तरीका बताया गया है.
.zip फ़ाइल भी उपलब्ध है.
- Google Docs PDF Concatenator
- यह PDF फ़ाइलों को एक साथ जोड़ता है और नतीजे को Google Docs पर अपलोड करता है.
.zip फ़ाइल भी उपलब्ध है.
अन्य भाषाएं
C++
- Documents List API का सैंपल
- इसकी मदद से, लोग अपने Google दस्तावेज़, स्प्रेडशीट, प्रज़ेंटेशन, और फ़ोल्डर देख सकते हैं, उन्हें अपलोड कर सकते हैं, मिटा सकते हैं, और खोज सकते हैं. इस सैंपल में, एपीआई की एसीएल सुविधा के बारे में भी बताया गया है. इसके लिए, उन उपयोगकर्ताओं की सूची दी गई है जिनके पास पढ़ने/लिखने की अनुमतियां हैं.
Ruby
- DocList Manager
- Ruby on Rails का सैंपल, जिसकी मदद से उपयोगकर्ता दस्तावेज़ देख और एक्सपोर्ट कर सकते हैं.
वापस सबसे ऊपर जाएं
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis page focuses on Google's older Google Data APIs and provides links to relevant documentation for newer APIs.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers various code samples in JavaScript, JSON, Gadget, Java, .NET, and other languages to showcase interactions with the APIs.\u003c/p\u003e\n"],["\u003cp\u003eMany previously available JavaScript samples have been removed due to reliance on outdated APIs or authentication methods.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find bundled sample code within the downloadable Java and .NET client library packages.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides documentation and resources for creating Google Data API gadgets and using JSON with Google Data APIs.\u003c/p\u003e\n"]]],[],null,["# Google Data APIs Samples\n\n**Warning** : This page is about Google's older APIs, the Google Data APIs; it's relevant only to the APIs that are listed in the [Google Data APIs directory](/gdata/docs/directory), many of which have been replaced with newer APIs. For information about a specific new API, see the new API's documentation. For information about authorizing requests with a newer API, see [Google Accounts Authentication and Authorization](/accounts).\n\nThis page provides links and information about sample code.\n\nContents\n--------\n\n1. [JavaScript samples](#JavaScript)\n2. [JSON samples](#JSON)\n3. [Gadget samples](#Gadgets)\n4. [Java samples](#Java)\n5. [.NET samples](#NET)\n6. [Other languages](#OTHERLANGS)\n\nJavaScript samples\n------------------\n\nThe [JavaScript client library](/gdata/docs/js)\ncan be used from web browsers to interact with the [Base Data API](/base), [Blogger Data API](/blogger/docs/1.0/developers_guide_js),\n[Calendar Data API](/google-apps/calendar/v1/developers_guide_javascript), [Contacts Data API](/google-apps/contacts/v1/developers_guide_js), and\n[Finance Data API](/finance/docs/1.0/developers_guide_js).\n\n**Note**: The samples that were previously in this section have been removed because they relied on APIs and/or authentication methods that are no longer available.\n\nJSON samples\n------------\n\nThese are live samples; click to view them. For more information, see [Using JSON with Google Data APIs](/gdata/json).\n\n### Google Calendar\n\n[Upcoming events from Calendar](/gdata/samples/cal_sample)\n: This sample demonstrates displaying a list of upcoming calendar events from a Google Calendar on a web page using the JSON output format provided by the Calendar Data API.\n\n### Blogger\n\n[Recent posts from Blogger](/gdata/samples/blogger_sample)\n: This sample demonstrates displaying a list of recent posts from a blog hosted on Blogger Beta using the JSON output format provided by the Blogger Data API.\n\n### Spreadsheets\n\n[Reading Google Spreadsheets data](/gdata/samples/spreadsheet_sample)\n: This sample demonstrates displaying data from a Google Spreadsheet on a web page using the JSON output format provided by the Spreadsheet Data API.\n\nGadget samples\n--------------\n\nFor more information on creating Google Data API gadgets, see [Creating a Google Data Gadget](/gdata/articles/gdata_gadgets) or the full [Writing OAuth Gadgets](/gadgets/docs/oauth) documentation.\n\n[Blogger gadget](http://code.google.com/p/gdata-samples/source/browse/trunk/gadgets/blogger/blogger_gadget.xml)\n[YouTube gadget](http://gadget-doc-examples.googlecode.com/svn/trunk/opensocial-gadgets/oauth-test.xml)\n\nJava samples\n------------\n\n### Samples bundled with the client library\n\nThese samples can be found in the downloadable Java client library\npackage. For more information, see the [Java\nclient library developer's guide](/gdata/client-java), or [download the Java client library](//code.google.com/p/gdata-java-client/downloads/list).\n\n[java/sample/authsub/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/authsub)\n: GData AuthSub proxy, implemented using Java servlets; sample JavaScript client that accesses data through the proxy.\n\n[java/sample/calendar/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/calendar)\n: Simple client that performs several hardwired manipulations on a Google Calendar.\n\n[java/sample/codesarch/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/codesearch)\n: Command line client to query the Google Code Search data API.\n\n[java/sample/spreadsheet/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/spreadsheet)\n: Sample apps using Google Spreadsheet API.\n\n[java/sample/appsforyourdomain/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/appsforyourdomain)\n: Sample apps using G Suite API.\n\n[java/sample/blogger/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/blogger)\n: Sample apps using Blogger API.\n\n[java/sample/contacts/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts)\n: Sample apps using Google Contacts API.\n\n[java/sample/docs/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/docs)\n: Sample apps using Google Doclist API.\n\n[java/sample/gbase/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/gbase)\n: Sample apps using Google Base API.\n\n[java/sample/photos/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/photos)\n: Sample apps using Picasa Web Album API.\n\n[java/sample/sidewiki/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/sidewiki)\n: Sample apps using Google Sidewiki API.\n\n[java/sample/webmastertools/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/webmastertools)\n: Sample apps using Webmaster API.\n\n[java/sample/youtube/](//code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/youtube)\n: Sample apps using YouTube API.\n\n[YouTubeSample ASP page](http://google-gdata.googlecode.com/svn/trunk/clients/cs/samples/YouTubeSample/)\n: Video search and upload sample using the client library.\n\n.NET samples\n------------\n\n### Samples bundled with the client library\n\nThese samples can be found in the downloadable .NET client library package. For more information, see the [.NET client library developer's guide](/gdata/client-cs), or [download the .NET client library](//code.google.com/p/google-gdata).\n\n[clients/cs/samples/blogger/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/blogger)\n: Sample apps using Blogger API.\n\n[clients/cs/samples/calendar/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/calendar)\n: Sample apps using Google Calendar Data API.\n\n[clients/cs/samples/spreadsheets/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/spreadsheets)\n: Sample apps using Google Spreadsheet API.\n\n[clients/cs/samples/DocListUploader/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/DocListUploader)\n: Uploads documents to Google Docs.\n\n[clients/cs/samples/DocListExporter/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/DocListExporter)\n: Exports Google Documents in various formats.\n\n[clients/cs/samples/PhotoBrowser/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/PhotoBrowser)\n: Sample apps using Picasa Web Album API.\n\n[clients/cs/samples/YouTubeSample/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/YouTubeSample)\n: Sample apps using YouTube API.\n\n[clients/cs/samples/appsforyourdomain/](//code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/appsforyourdomain)\n: Sample apps using G Suite API.\n\n### Other examples\n\n[Contacts Updater](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/contacts/ContactsUpdater)\n: A WPF sample that demonstrates how to read and update your contacts using the Contacts API.\n A [.zip file](http://gdata-samples.googlecode.com/svn/trunk/contacts/ContactsUpdater/ContactsUpdater.zip) is also available.\n\n[Google Docs PDF Concatenator](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/doclist/PdfConcatenate)\n: Concatenates PDF files together and uploads the result to Google Docs.\n A [.zip file](http://gdata-samples.googlecode.com/files/PdfConcatenate.zip) is also available.\n\nOther languages\n---------------\n\n### C++\n\n[Documents List API sample](//code.google.com/p/gdata-cpp-util/source/browse/trunk/doclist_sample.cc)\n: Allows users to view, upload, delete, and search their Google documents, spreadsheets, presentations, and folders. This sample\n also demonstrates the API's ACL functionality by listing the users who have read/write permissions.\n\n### Ruby\n\n[DocList Manager](//code.google.com/p/gdata-samples/source/browse/#svn/trunk/doclist/DocListManager)\n: Ruby on Rails sample that allows users to view and export documents.\n\n[Back to top](#top)"]]