共用方式為


我的時數 (預覽)

使用動態選擇器追蹤時間並管理專案、任務、客戶和標籤。 此連接器會公開用於建立和尋找實體的端點。

此連接器適用於以下產品和區域:

服務 Class Regions
副駕駛工作室 進階 除下列區域外的所有 Power Automate 區域
     - 美國政府 (GCC)
     - 美國政府(海灣合作委員會高中)
     - 由 21Vianet 營運的中國雲
     - 美國國防部 (DoD)
邏輯應用程式 標準 所有 Logic Apps 區域, 但下列區域除外:
     - Azure Government 區域
     - Azure 中國區域
     - 美國國防部 (DoD)
Power Apps 進階 除下列區域外的所有 Power Apps 區域
     - 美國政府 (GCC)
     - 美國政府(海灣合作委員會高中)
     - 由 21Vianet 營運的中國雲
     - 美國國防部 (DoD)
Power Automate(自動化服務) 進階 除下列區域外的所有 Power Automate 區域
     - 美國政府 (GCC)
     - 美國政府(海灣合作委員會高中)
     - 由 21Vianet 營運的中國雲
     - 美國國防部 (DoD)
連絡人​​
名稱 我的營業時間
URL https://myhours.com
Email support@myhours.com
連接器中繼資料
Publisher 皮卡國際
網站 https://myhours.com
隱私策略 https://myhours.com/legal/personal-data-processing-addendum-for-my-hours-cloud-services
類別 生產力

My Hours - Connector 簡介

使用「我的時數」連接器追蹤時間並管理專案、任務、客戶和標籤。


Authentication

型: API 金鑰 (標頭)

建立連線時,請使用下列確切格式,在名為 Authorization 的單一欄位中輸入完整值

範例:apikey 123abcXYZ

連接器會將此值作為每個請求的標頭傳送 Authorization

從哪裡獲得鑰匙: 從您的「我的營業時間」帳戶設定。 建立或複製 API 金鑰。 保守秘密,如果暴露,請輪換它。


支援的動作

  • 建立用戶端 — 建立新用戶端。
  • 名稱尋找用戶端 — 傳回符合所提供名稱的用戶端。
  • 建立專案 — 建立新專案。
  • 名稱尋找專案 — 依名稱尋找專案。
  • 將任務新增至專案 — 在選取的專案上建立任務。
  • 依名稱尋找任務 — 依名稱和專案 ID 尋找專案任務。
  • 建立標籤 – 建立新標籤 (十六進位顏色)。
  • 名稱尋找標籤 — 依名稱尋找標籤。
  • 建立時間日誌 — 建立新的時間日誌。
  • 取得時間日誌 – 擷取日期範圍的詳細活動/時間日誌。

支援的觸發程式

  • 建立新專案時 — 當新專案出現時觸發。
  • 建立新任務時 — 當出現新專案任務時觸發。
  • 建立新時間記錄檔時 — 出現新的時間記錄檔時觸發。

使用說明和限制

  • 授權格式 — 連線需要文字前置詞 apikey ,後面接著您的金鑰。 如果您省略前置詞或新增額外的字元,則要求可能會失敗,並顯示 400401
  • 日期/時間格式 — 日期為 YYYY-MM-DD。 日期/時間值為 ISO 8601(例如 2025-09-05T08:30:00Z 或局部偏移)。
  • 建立時間日誌— 提供duration (秒) 兩者 startend。 提供這三個都是無效的。
  • 動態選擇器 – 專案、任務、標籤和使用者欄位使用動態清單;確保您的帳戶有權讀取這些實體,否則清單可能是空的。
  • 環境 — 僅支援生產 API 主機: https://api2.myhours.com

錯誤處理

連接器會傳回標準 HTTP 狀態碼:

Code Meaning 典型原因
200 成功 讀取/列出作業。
201 已建立 成功的建立作業。
400 錯誤的請求 輸入遺失/無效、標頭格式錯誤、正文欄位衝突。
500 伺服器錯誤 暫時性後端問題或非預期的錯誤。

Troubleshooting

  1. 確認 授權 值是否使用確切 apikey YOUR_API_KEY 的格式。
  2. 檢查必填欄位是否存在且有效。
  3. 對於 Create Time Log,確認 您傳遞了duration ( 和startend)。

變更紀錄

  • 1.0.0 – 初始提交認證。

Support

正在建立連線

連接器支援下列驗證類型:

預設值 建立連線的參數。 所有區域 不可共享

預設

適用:所有地區

建立連線的參數。

這不是可共用的連線。 如果 Power App 與其他使用者共用,系統會明確提示其他使用者建立新連線。

名稱 類型 Description 為必填項目
Authorization securestring 此 API 的授權

節流限制

名稱 呼叫 續約期間
每個連線的 API 呼叫 100 60 秒

動作

依名稱尋找任務

依名稱和專案 ID 尋找專案任務。

依名稱尋找專案

依名稱尋找專案。

依名稱尋找標籤

按名稱查找標籤。

創建專案

建立新專案。

創建標籤

建立新標籤。

取得時間日誌

取得日期範圍的詳細活動或時間記錄。

將任務新增至專案

在選取的專案上建立任務。

建立時間日誌

建立時間日誌。 應填寫欄位「持續時間」或欄位「開始時間」和「結束時間」。如果這三個都被填滿,您將收到錯誤

建立用戶端

建立新的客戶記錄。

按名稱查找客戶

傳回符合所提供名稱的用戶端。

依名稱尋找任務

依名稱和專案 ID 尋找專案任務。

參數

名稱 機碼 必要 類型 Description
任務名稱
projectTaskName True string

任務名稱。

專案識別碼
projectId True integer

專案 ID。

傳回

身體
ProjectTask

依名稱尋找專案

依名稱尋找專案。

參數

名稱 機碼 必要 類型 Description
專案名稱
projectName True string

專案名稱。

傳回

身體
Project

依名稱尋找標籤

按名稱查找標籤。

參數

名稱 機碼 必要 類型 Description
標籤名稱
tagName True string

標記名稱。

傳回

身體
Tag

創建專案

建立新專案。

參數

名稱 機碼 必要 類型 Description
名稱
name True string

專案名稱。

用戶端識別碼
clientId integer

用戶端識別碼。

註釋
notes string

筆記。

指派的使用者
autoAssignUserId integer

指派給專案的使用者。

傳回

身體
Project

創建標籤

建立新標籤。

參數

名稱 機碼 必要 類型 Description
標籤名稱
name True string

標記名稱。

十六進制顏色
hexColor True string

十六進制顏色

傳回

身體
Tag

取得時間日誌

取得日期範圍的詳細活動或時間記錄。

參數

名稱 機碼 必要 類型 Description
日期開始
dateFrom True date

YYYY-MM-DD 格式的開始日期。

日期至
dateTo True date

結束日期為 YYYY-MM-DD 格式。

傳回

將任務新增至專案

在選取的專案上建立任務。

參數

名稱 機碼 必要 類型 Description
專案識別碼
projectId True integer

專案 ID。

清單名稱
listName string

工作清單名稱。

名稱
name True string

任務名稱。

Description
description string

Description.

傳回

身體
ProjectTask

建立時間日誌

建立時間日誌。 應填寫欄位「持續時間」或欄位「開始時間」和「結束時間」。如果這三個都被填滿,您將收到錯誤

參數

名稱 機碼 必要 類型 Description
Date
date True date

YYYY-MM-DD 格式的日期。

開始時間
start date-time

UTC 或本機 ISO 8601 格式的開始時間。

結束時間
end date-time

UTC 或本機 ISO 8601 格式的結束時間。

持續時間
duration integer

持續時間以秒為單位。

Description
Note string

便條。

專案識別碼
ProjectId integer

專案 ID。

工作識別碼
TaskId integer

工作 ID。

標籤 ID
TagId integer

標籤 ID。

傳回

身體
TimeLog

建立用戶端

建立新的客戶記錄。

參數

名稱 機碼 必要 類型 Description
名稱
Name True string

用戶端名稱。

傳回

身體
Client

按名稱查找客戶

傳回符合所提供名稱的用戶端。

參數

名稱 機碼 必要 類型 Description
用戶端名稱
clientName True string

完全或部分相符的用戶端名稱。

傳回

response
array of Client

觸發程序

建立新任務時

建立新專案任務時觸發。

建立新專案時

建立新專案時觸發。

建立新的時間日誌時

建立新的時間記錄檔時觸發。

建立新任務時

建立新專案任務時觸發。

傳回

建立新專案時

建立新專案時觸發。

傳回

建立新的時間日誌時

建立新的時間記錄檔時觸發。

傳回

定義

時間切片

名稱 路徑 類型 Description
識別碼
id integer
duration
duration integer
startTime
startTime string
endTime
endTime string
執行中
running boolean
已刪除
deleted boolean

Attachment

名稱 路徑 類型 Description
fileName
fileName string
檔案網址
fileUrl string
識別碼
id integer

標記

名稱 路徑 類型 Description
名稱
name string
十六進制顏色
hexColor string
已存檔
archived boolean
日期已存檔
dateArchived string
識別碼
id integer

客戶

名稱 路徑 類型 Description
名稱
name string
聯繫人名稱
contactName string
聯繫我們電子郵件
contactEmail string
聯繫電話
contactPhone string
address
address string
自訂標識碼
customId string
customField值
customFieldValues string
識別碼
id integer

專案

名稱 路徑 類型 Description
invoice方法(invoiceMethod)
invoiceMethod integer
價格
rate float
budgetType
budgetType integer
預算值
budgetValue integer
預算警示百分比
budgetAlertPercent integer
附註
notes string
已批准
approved boolean
圓形類型
roundType integer
圓形間隔
roundInterval integer
第一個記錄日期
firstLogDate string
budgetTarget
budgetTarget integer
budgetPeriodType
budgetPeriodType string
startDate
startDate string
截止日期
dueDate string
創建日期
dateCreated string
createdByUserId
createdByUserId integer
createdBy使用者名稱
createdByUserName string
可計費
billable boolean
customField值
customFieldValues string
clientId
clientId integer
客戶名稱
clientName string
clientCustomId
clientCustomId string
名稱
name string
已存檔
archived boolean
自訂標識碼
customId string
識別碼
id integer

ProjectTask

名稱 路徑 類型 Description
名稱
name string
訂單否
orderNo integer
說明
description string
已完成
completed boolean
已存檔
archived boolean
startDate
startDate string
截止日期
dueDate string
價格
rate float
billableByDefault
billableByDefault boolean
預算值
budgetValue float
預算已花費
budgetSpent float
預算花費百分比
budgetSpentPercentage float
專案預算類型
projectBudgetType integer
projectTaskUserIds
projectTaskUserIds array of integer
customField值
customFieldValues string
自訂標識碼
customId string
專案自訂標識碼
projectCustomId string
clientCustomId
clientCustomId string
識別碼
id integer

時間日誌

名稱 路徑 類型 Description
注意
note string
date
date string
duration
duration integer
使用者名稱
userName string
專案名稱
projectName string
task名稱
taskName string
客戶名稱
clientName string
執行中
running boolean
startTime
startTime string
endTime
endTime string
times array of TimeSlice
狀態
status integer
projectId
projectId integer
taskId
taskId integer
可計費
billable boolean
費用
expense float
userId
userId integer
計費費率
billableRate float
billable金額
billableAmount float
勞動率
laborRate float
人工成本
laborCost float
自訂欄位1名稱
customField1Name string
customField2名稱
customField2Name string
customField3名稱
customField3Name string
customField1值
customField1Value string
customField2值
customField2Value string
customField3值
customField3Value string
tags
tags string
持續時間在小時
durationInHours float
識別碼
id integer
標籤資料
tagsData array of Tag
attachments
attachments array of Attachment

活動日誌列

名稱 路徑 類型 Description
logId
logId integer
userId
userId integer
date
date string
團隊名稱
teamsNames string
使用者名稱
userName string
使用者自訂標識碼
userCustomId string
clientId
clientId integer
客戶名稱
clientName string
clientCustomId
clientCustomId string
projectId
projectId integer
專案名稱
projectName string
專案自訂標識碼
projectCustomId string
專案開始日期
projectStartDate string
專案到期日期
projectDueDate string
專案預算類型
projectBudgetType string
專案預算目標
projectBudgetTarget string
專案預算期間類型
projectBudgetPeriodType string
專案預算值
projectBudgetValue integer
taskList名稱
taskListName string
taskId
taskId integer
task名稱
taskName string
taskCustomId
taskCustomId string
task開始日期
taskStartDate string
task到期日期
taskDueDate string
任務已完成
taskCompleted boolean
userCustomField值
userCustomFieldValues string
專案自訂欄位值
projectCustomFieldValues string
clientCustomField值
clientCustomFieldValues string
taskCustomField值
taskCustomFieldValues string
tags
tags string
價格
rate float
可計費
billable boolean
inLockedPeriod
inLockedPeriod boolean
billable金額
billableAmount float
amount float
人工成本
laborCost float
勞動率
laborRate float
日誌持續時間
logDuration integer
logDurationBillable
logDurationBillable integer
勞動持續時間
laborDuration integer
開始結束時間
startEndTime string
費用
expense float
billableExpense
billableExpense float
成本
cost float
注意
note string
狀態
status string
發票編號
invoiceId integer
已開立發票
invoiced boolean
計費時數
billableHours integer
billableHoursLogBillable
billableHoursLogBillable integer
工時
laborHours integer
自訂欄位1
customField1 integer
自訂欄位2
customField2 integer
自訂欄位3
customField3 integer
餘額
balance integer
年份月份
monthOfYear string
週否
weekNo integer
年份週
weekOfYear string
團隊
teams array of string
執行中
running boolean
startTime
startTime string
endTime
endTime string
times array of TimeSlice
標籤資料
tagsData array of Tag
attachments
attachments array of Attachment
圓形類型
roundType string
invoiced金額
invoicedAmount float
uninvoiced金額
uninvoicedAmount float

活動報告回應

名稱 路徑 類型 Description
body
body array of ActivityLogRow

觸發記錄信封

名稱 路徑 類型 Description
記錄
logs array of TimeLog

觸發專案信封

名稱 路徑 類型 Description
projects
projects array of object
clientId
projects.clientId integer
客戶名稱
projects.clientName string
clientCustomId
projects.clientCustomId string
名稱
projects.name string
自訂標識碼
projects.customId string
識別碼
projects.id integer

觸發專案任務信封

名稱 路徑 類型 Description
專案任務
projectTasks array of object
projectId
projectTasks.projectId integer
listName
projectTasks.listName string
listOrderNo
projectTasks.listOrderNo integer
名稱
projectTasks.name string
訂單否
projectTasks.orderNo integer
說明
projectTasks.description string
價格
projectTasks.rate float
預算值
projectTasks.budgetValue float
專案預算類型
projectTasks.projectBudgetType integer
自訂標識碼
projectTasks.customId string
billableByDefault
projectTasks.billableByDefault boolean
專案自訂標識碼
projectTasks.projectCustomId string
clientCustomId
projectTasks.clientCustomId string
識別碼
projectTasks.id integer