ব্যবস্থাপনা প্রকল্প
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই বিভাগটি Apps Script API পদ্ধতিগুলির একটি ওভারভিউ প্রদান করে যা আপনি আপনার Apps স্ক্রিপ্ট প্রকল্পগুলি তৈরি করতে, পড়তে, সংশোধন করতে এবং নিরীক্ষণ করতে ব্যবহার করতে পারেন৷ প্রজেক্ট ম্যানেজমেন্টের নমুনা পৃষ্ঠাটি API পরিচালনার অনুরোধের উদাহরণ দেখায়। প্রতিটি পদ্ধতির জন্য রেফারেন্স ডকুমেন্টেশন বাস্তবায়নের বিশদ প্রদান করে।
API পদ্ধতি ওভারভিউ |
---|
প্রকল্প তৈরি করুন | projects.create ফলাফল : একটি মৌলিক, খালি প্রজেক্ট তৈরি করুন যেখানে কোন প্রজেক্ট ফাইল নেই এবং একটি ডিফল্ট প্রজেক্ট ম্যানিফেস্ট । বিকল্প : আপনি একটি প্রকল্প শিরোনাম প্রদান করতে পারেন. আপনি স্ক্রিপ্টের অভিভাবক হিসাবে কাজ করার জন্য Google ডক্স, Google পত্রক, Google ফর্ম বা স্লাইড ফাইলের Google ড্রাইভ আইডি প্রদান করে একটি আবদ্ধ স্ক্রিপ্ট তৈরি করতে পারেন। |
প্রজেক্ট মেটাডেটা পড়ুন | projects.get ফলাফল : একটি Project অবজেক্ট পুনরুদ্ধার করে, যা প্রজেক্ট মেটাডেটা প্রতিনিধিত্ব করে। এই ডেটাতে প্রকল্পের শিরোনাম, স্ক্রিপ্ট আইডি, ব্যবহারকারী তৈরি, তৈরির সময় এবং অন্যান্য বিবরণ অন্তর্ভুক্ত রয়েছে। |
প্রকল্পের বিষয়বস্তু পড়ুন | projects.getContent ফলাফল : প্রজেক্টের প্রতিটি কোড এবং HTML ফাইলের জন্য একটি File অবজেক্টের একটি অ্যারে প্রদান করে। তালিকায় একটি JSON ফাইল হিসাবে প্রজেক্ট ম্যানিফেস্টও রয়েছে। ফাইল অবজেক্টে ফাইলের সোর্স বিষয়বস্তু থাকে ( File.source ) এবং অন্যান্য মেটাডেটা, যেমন ফাইলের ফাংশনের তালিকা ( File.functionSet )। বিকল্পগুলি : আপনি একটি ক্যোয়ারী প্যারামিটারের সাথে সামগ্রীর কোন সংস্করণটি পুনরুদ্ধার করতে হবে তা নির্দিষ্ট করতে পারেন৷ |
প্রকল্পের বিষয়বস্তু আপডেট করুন | projects.updateContent ফলাফল : একটি স্ক্রিপ্ট প্রকল্পে ফাইলের বিষয়বস্তু পরিবর্তন করে। আপনি File অবজেক্টের অ্যারে হিসাবে নতুন সামগ্রী প্রদান করেন। এই File অবজেক্টগুলির মধ্যে একটিতে অবশ্যই JSON টাইপ থাকতে হবে এবং স্ক্রিপ্ট প্রজেক্টের নতুন প্রোজেক্ট ম্যানিফেস্টের প্রতিনিধিত্ব করতে হবে। নতুন বিষয়বস্তু প্রকল্পের প্রধান সংস্করণ হিসাবে সংরক্ষণ করা হয়. এটি ব্যবহৃত হয় যখন স্ক্রিপ্ট একটি ট্রিগার হিসাবে, স্ক্রিপ্ট সম্পাদকে, অ্যাড-অন প্রিভিউ মোডে, বা একটি ওয়েব অ্যাপ বা অ্যাপস স্ক্রিপ্ট API হিসাবে ডেভেলপমেন্ট মোডে কার্যকর হয়। দ্রষ্টব্য : স্ক্রিপ্ট প্রকল্পের বিষয়বস্তু আপডেট করার সময়, সাধারণ অভ্যাসটি হল প্রথমে একটি projects.getContent অনুরোধ জারি করা যাতে বিদ্যমান File একটি অ্যারে পুনরুদ্ধার করা যায়, সেই বস্তুগুলির জন্য ইচ্ছা তৈরি করা হয়, তারপর একটি projects.updateContent অনুরোধের জন্য File ইনপুট হিসাবে ব্যবহার করুন৷ সতর্কতা: নতুন বিষয়বস্তু স্ক্রিপ্ট প্রকল্পে বিদ্যমান সমস্ত ফাইল প্রতিস্থাপন করে। অনুরোধ দ্বারা আপডেট না করা ফাইল মুছে ফেলা হয়. |
প্রকল্পের মেট্রিক্স পড়ুন | projects.getMetrics ফলাফল : একটি প্রকল্প সম্পর্কে নির্দিষ্ট মেট্রিক্স পড়ুন। এই মেট্রিক্সের মধ্যে ব্যবহারকারীর সংখ্যা, মৃত্যুদণ্ডের মোট সংখ্যা, কার্যকরী ত্রুটির মোট সংখ্যা এবং অন্যান্য বিবরণ অন্তর্ভুক্ত রয়েছে। আপনি যে তথ্যের অনুরোধ করছেন তা নির্দিষ্ট করতে একটি মেট্রিক টাইপ ব্যবহার করুন। বিকল্প : একটি MetricsFilter ব্যবহার করে ফলাফলগুলিকে নির্দিষ্ট স্থাপনা বা স্ক্রিপ্ট ফাংশনে সীমাবদ্ধ করুন। আপনি একটি MetricsIntervalConfig ব্যবহার করে একটি নির্দিষ্ট মেট্রিক ব্যবধানও সংজ্ঞায়িত করতে পারেন। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis section outlines Apps Script API methods for managing Apps Script projects, including creating, reading, updating, and monitoring.\u003c/p\u003e\n"],["\u003cp\u003eYou can create new projects, retrieve project metadata and content, and update project files using these methods.\u003c/p\u003e\n"],["\u003cp\u003eThe API allows you to access project metrics like user count, executions, and errors for analysis.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided links for detailed documentation and code samples on project management requests.\u003c/p\u003e\n"]]],[],null,["# Managing Projects\n\nThis section provides an overview of the Apps Script API methods\nyou can use to create, read, modify,\nand monitor your Apps Script projects. The\n[Project Management](/apps-script/api/samples/manage)\nsamples page shows examples of API management requests. The reference\ndocumentation for each method provides implementation details.\n\n| **API method overview** ||\n|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Create projects** | [projects.create](/apps-script/api/reference/rest/v1/projects/create) **Results** : Create a basic, empty project with no project files and a default [project manifest](/apps-script/concepts/manifests). **Options** : You can provide a project title. You can also create a [bound script](/apps-script/guides/bound) by providing the Google Drive ID of a Google Docs, Google Sheets, Google Forms, or Slides file to act as the script's parent. |\n| **Read project metadata** | [projects.get](/apps-script/api/reference/rest/v1/projects/get) **Results** : Retrieves a [`Project`](/apps-script/api/reference/rest/v1/projects#Project) object, which represents project metadata. This data includes the project title, script ID, creating user, creation time, and other details. |\n| **Read project content** | [projects.getContent](/apps-script/api/reference/rest/v1/projects/getContent) **Results** : Returns an array of [`File`](/apps-script/api/reference/rest/v1/File) objects, one for each code and HTML file in the project. The list also includes the [project manifest](/apps-script/concepts/manifests) as a JSON file. File objects contain the source content of the file (`File.source`) and other metadata, such a list of functions in the file (`File.functionSet`). **Options** : You can specify which [version](/apps-script/guides/versions) of the content to retrieve with a query parameter. |\n| **Update project content** | [projects.updateContent](/apps-script/api/reference/rest/v1/projects/updateContent) **Results** : Changes the file content in a script project. You provide the new content as an array of [`File`](/apps-script/api/reference/rest/v1/File) objects. One of these `File` objects must have JSON type and represent the script project's new [project manifest](/apps-script/concepts/manifests). The new content is stored as the HEAD version of the project. It is used when the script executes as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. **Note** : When updating script project content, common practice is to first issue a [projects.getContent](/apps-script/api/reference/rest/v1/projects/getContent) request to retrieve an array of the existing `File`s, make the desire to those objects, then use the `File`s as input for a [projects.updateContent](/apps-script/api/reference/rest/v1/projects/updateContent) request. **Warning:** The new content replaces all existing files in the script project. Files not updated by the request are removed. |\n| **Read project metrics** | [projects.getMetrics](/apps-script/api/reference/rest/v1/projects/getMetrics) **Results** : Read certain metrics about a project. These metrics include the number of users, the total number of executions, the total number of execution errors, and other details. Use a [MetricType](/apps-script/api/reference/rest/v1/projects/getMetrics#metrictype) to specify the information you are requesting. **Options** : Restrict the results to specific deployments or script functions using a [MetricsFilter](/apps-script/api/reference/rest/v1/projects/getMetrics#MetricsFilter). You can also define a specific metric interval using a [MetricsIntervalConfig](/api/reference/rest/v1/projects/getMetrics#metricsintervalconfig). |"]]