Blogger के डेटा एपीआई से JSON फ़ीड पाने का आसान उदाहरण
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सुविधा के बारे में जानकारी
इस उदाहरण में, Blogger के बीटा वर्शन पर होस्ट किए गए किसी ब्लॉग से, हाल ही की पोस्ट की सूची दिखाई गई है. इसके लिए, Blogger डेटा एपीआई के JSON आउटपुट फ़ॉर्मैट का इस्तेमाल किया गया है. यह आपको ब्लॉग के सार्वजनिक फ़ीड के लिए क्वेरी करने की सुविधा देता है. साथ ही, मिलने वाली एंट्री को JSON ऑब्जेक्ट के तौर पर दिखाता है. JSON JSON के नए फ़ीड का इस्तेमाल करने के लिए,
ऐसा स्क्रिप्ट एलिमेंट बनाएं जिसकी src
वैल्यू हो
https://blogname.blogspot.com/feeds/posts/default?alt=json-in-script&callback=myFunc
जहां blogname
वह ब्लॉग है जिसे आप रिकवर करना चाहते हैं और
myFunc
आपके कॉलबैक फ़ंक्शन का नाम है, जो JSON ऑब्जेक्ट को पास करता है.
Google डेटा एपीआई के लिए JSON आउटपुट सहायता के बारे में ज़्यादा जानकारी के लिए, कृपया हमारा JSON आउटपुट सहायता दस्तावेज़ देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-03-01 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-03-01 (UTC) को अपडेट किया गया."],[],[],null,["# Simple example of retrieving JSON feeds from Blogger Data API\n\n### Introduction\n\nThis sample demonstrates displaying a list of recent posts from a blog hosted on Blogger Beta\nusing the JSON output format provided by the Blogger Data API. This allows you to query a blog's\npublic feed and get the resulting entries returned as JSON objects. To use the new JSON feed,\ncreate a script element whose `src` value is\n\u003e `https://`**blogname** `.blogspot.com/feeds/posts/default?alt=json-in-script&callback=`**myFunc**\n\nwhere **`blogname`** is the blog you want to retrieve, and\n**`myFunc`** is the name of your callback function that is passed the JSON object.\nFor more information on JSON output support for Google Data APIs please see our\n[JSON output support documentation](/gdata/json).\n\n### Demo with data from googlemapsapi.blogspot.com"]]