Google Tasks
با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
وظایف را از لیست وظایف دریافت کنید
function getTasksFromDefaultList() {
// You can substitute a task list ID here to retrieve all the tasks
// in that list.
var TASK_LIST_ID = '@default';
var taskList = Tasks.Tasklists.get(TASK_LIST_ID);
// Display the task list details.
console.log('Name: %s (%s)', taskList.title, taskList.id);
// Retrieve all the tasks in the list.
var tasks = Tasks.Tasks.list(TASK_LIST_ID);
for (var i = 0; i < tasks.items.length; i++) {
console.log(' %s) Title: %s, Due on: %s, Status: %s, ID = %s.',
i.toFixed(0), tasks.items[i].title,
tasks.items[i].due ? tasks.items[i].due : 'Never',
tasks.items[i].status, tasks.items[i].id);
}
}
یک کار ایجاد کنید
function createTask() {
// You can substitute a task list ID here to create the task in a
// specific list.
var TASK_LIST_ID = '@default';
var task = Tasks.newTask();
task.title = 'Run reports';
task.notes = 'Run account performance report in 5 days.';
var dueDate = new Date();
dueDate.setDate(dueDate.getDate() + 5);
task.due = dueDate.toISOString();
var newTask = Tasks.Tasks.insert(task, TASK_LIST_ID);
console.log('Task with title = %s, id = %s and notes = %s was created. ' +
'Task is due on %s.',
newTask.title, newTask.id, newTask.notes, newTask.due);
}
علامت گذاری کار به عنوان انجام شده
function markTaskAsCompleted() {
var TASK_ID = 'INSERT_TASK_ID_HERE';
var TASK_LIST_ID = '@default';
// Retrieve the task.
var task = Tasks.Tasks.get(TASK_LIST_ID, TASK_ID);
task.status = 'completed';
var updatedTask = Tasks.Tasks.update(task, TASK_LIST_ID, TASK_ID);
console.log('Task with title = %s, id = %s and notes = %s was marked ' +
'as complete.', updatedTask.title, updatedTask.id,
updatedTask.notes);
}
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-09-09 بهوقت ساعت هماهنگ جهانی.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"اطلاعاتی که نیاز دارم وجود ندارد"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"بیشازحد پیچیده/ مراحل بسیار زیاد"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"قدیمی"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"مشکل ترجمه"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشکل کد / نمونهها"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غیره"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"درک آسان"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"مشکلم را برطرف کرد"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غیره"
}]
{"lastModified": "\u062a\u0627\u0631\u06cc\u062e \u0622\u062e\u0631\u06cc\u0646 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc 2024-09-09 \u0628\u0647\u200c\u0648\u0642\u062a \u0633\u0627\u0639\u062a \u0647\u0645\u0627\u0647\u0646\u06af \u062c\u0647\u0627\u0646\u06cc."}
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2024-09-09 بهوقت ساعت هماهنگ جهانی."]]