ব্লগার ডেটা API থেকে JSON ফিড পুনরুদ্ধার করার সহজ উদাহরণ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ভূমিকা
এই নমুনাটি ব্লগার ডেটা API দ্বারা প্রদত্ত JSON আউটপুট ফর্ম্যাট ব্যবহার করে ব্লগার বিটাতে হোস্ট করা একটি ব্লগের সাম্প্রতিক পোস্টগুলির একটি তালিকা প্রদর্শন করে৷ এটি আপনাকে একটি ব্লগের সর্বজনীন ফিড অনুসন্ধান করতে এবং ফলাফল এন্ট্রিগুলিকে JSON অবজেক্ট হিসাবে ফেরত পেতে অনুমতি দেয়৷ নতুন JSON ফিড ব্যবহার করতে, একটি স্ক্রিপ্ট উপাদান তৈরি করুন যার src
মান
https:// blogname .blogspot.com/feeds/posts/default?alt=json-in-script&callback= myFunc
যেখানে blogname
হল যে ব্লগটি আপনি পুনরুদ্ধার করতে চান, এবং myFunc
হল আপনার কলব্যাক ফাংশনের নাম যা JSON অবজেক্টে পাস করা হয়েছে। Google ডেটা API-এর জন্য JSON আউটপুট সমর্থন সম্পর্কে আরও তথ্যের জন্য অনুগ্রহ করে আমাদের JSON আউটপুট সমর্থন ডকুমেন্টেশন দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
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"]]