স্প্রেডশীট ডেটা API থেকে JSON ফিড পুনরুদ্ধার করার সহজ উদাহরণ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সতর্কতা : এই পৃষ্ঠাটি Google-এর পুরানো API, Google Data APIs সম্পর্কে; এটি শুধুমাত্র Google Data APIs ডিরেক্টরিতে তালিকাভুক্ত APIগুলির সাথে প্রাসঙ্গিক, যার মধ্যে অনেকগুলি নতুন API দিয়ে প্রতিস্থাপিত হয়েছে৷ একটি নির্দিষ্ট নতুন API সম্পর্কে তথ্যের জন্য, নতুন API এর ডকুমেন্টেশন দেখুন। একটি নতুন API-এর সাহায্যে অনুরোধ অনুমোদনের বিষয়ে তথ্যের জন্য, Google অ্যাকাউন্ট প্রমাণীকরণ এবং অনুমোদন দেখুন।
ভূমিকা
এই নমুনাটি স্প্রেডশীট ডেটা API দ্বারা প্রদত্ত JSON আউটপুট ফর্ম্যাট ব্যবহার করে একটি স্প্রেডশীটে একটি নির্দিষ্ট ওয়ার্কশীটের জন্য একটি তালিকা বা সেল ফিড প্রদর্শন করে। এটি আপনাকে একটি স্প্রেডশীটের সর্বজনীন তালিকা বা সেল ফিড অনুসন্ধান করতে এবং ফলাফল এন্ট্রিগুলিকে JSON অবজেক্ট হিসাবে ফেরত পেতে অনুমতি দেয়৷ নতুন JSON ফিড ব্যবহার করতে, একটি স্ক্রিপ্ট উপাদান তৈরি করুন যার src
মান
http://spreadsheets.google.com/feeds/ feed / key / worksheet /public/basic?alt=json-in-script&callback= myFunc
যেখানে feed
হল ফিডের ধরন, key
হল স্প্রেডশীটের চাবি যা আপনি পুনরুদ্ধার করতে চান, worksheet
হল ওয়ার্কশীটের অবস্থানগত বা অনন্য শনাক্তকারী, এবং myFunc
হল আপনার কলব্যাক ফাংশনের নাম যা JSON অবজেক্টে পাস করা হয়েছে। Google ডেটা API-এর জন্য JSON আউটপুট সমর্থন সম্পর্কে আরও তথ্যের জন্য অনুগ্রহ করে আমাদের JSON আউটপুট সমর্থন ডকুমেন্টেশন দেখুন।
দ্রষ্টব্য: প্রমাণীকরণ ছাড়া একটি ফিড পুনরুদ্ধার করা শুধুমাত্র প্রকাশিত স্প্রেডশীটের জন্য সমর্থিত।
দ্রষ্টব্য: অন্যান্য ফিডের ধরন এবং দৃশ্যমানতা এবং অভিক্ষেপের মানগুলি JSON আউটপুট সমর্থনের সাথে ব্যবহার করা যেতে পারে। অন্যান্য ফিড প্রকার, এবং দৃশ্যমানতা এবং অভিক্ষেপ মান সম্পর্কে আরও তথ্যের জন্য অনুগ্রহ করে স্প্রেডশীট ডেটা API ডকুমেন্টেশন দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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 Spreadsheets Data API\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| Version v4 of the [Google Sheets API](/sheets) is now available! This [migration guide](/sheets/guides/migration) shows how to update applications to use v4.\n\n### Introduction\n\nThis sample demonstrates displaying a list or cells feed for a particular worksheet in a spreadsheet using the JSON output format provided by the Spreadsheets Data API. This allows you to query a spreadsheet's public list or cell feed and get the resulting entries returned as JSON objects. To use the new JSON feed, create a script element whose `src` value is\n\u003e `http://spreadsheets.google.com/feeds/`**feed** `/`**key** `/`**worksheet** `/public/basic?alt=json-in-script&callback=`**myFunc**\n\nwhere **`feed`** is the type of feed, **`key`** is the key of the spreadsheet you want to retrieve, the **`worksheet`** is the positional or unique identifier of the worksheet, and **`myFunc`** is the name of your callback function that is passed the JSON object. For more information on JSON output support for Google Data APIs please see our [JSON output support documentation](/gdata/json).\n\n**Note:** Retrieving a feed without authentication is only supported for published spreadsheets.\n\n**Note:** Other feed types and visibility and projection values may be used with JSON output support. For more information on other feed types, and visibility and projection values please see the [Spreadsheets Data API](/google-apps/spreadsheets) documentation.\n\n### Demo\n\nSpreadsheet: http://spreadsheets.google.com/feeds/ list cells / / /public/values OK"]]