Method: otherContacts.copyOtherContactToMyContactsGroup

將「其他聯絡人」複製到使用者「myContacts」群組中的新聯絡人。

請為同一位使用者依序傳送 Mutate 要求,以避免延遲時間增加和失敗。

HTTP 要求

POST https://people.googleapis.com/v1/{resourceName=otherContacts/*}:copyOtherContactToMyContactsGroup

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
resourceName

string

必要欄位。要複製的「其他聯絡人」資源名稱。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "copyMask": string,
  "readMask": string,
  "sources": [
    enum (ReadSourceType)
  ]
}
欄位
copyMask

string (FieldMask format)

必要欄位。欄位遮罩,用於限制要將哪些欄位複製到新聯絡人。以下為有效值:

  • emailAddresses
  • names
  • phoneNumbers
readMask

string (FieldMask format)

選用設定。欄位遮罩,用於限制傳回使用者上的欄位。如要指定多個欄位,請用半形逗號分隔。如未設定,系統會預設使用中繼資料和成員欄位的複製遮罩。以下為有效值:

  • addresses
  • ageRanges
  • 傳記
  • 生日
  • calendarUrls
  • clientData
  • coverPhotos
  • emailAddresses
  • 活動
  • externalIds
  • 性別
  • imClients
  • 興趣
  • locales
  • 地點
  • 會籍
  • 中繼資料
  • miscKeywords
  • names
  • 暱稱
  • 職業
  • organizations
  • phoneNumbers
  • 相片
  • 關係
  • sipAddresses
  • skills
  • urls
  • userDefined
sources[]

enum (ReadSourceType)

選用設定。要傳回哪些來源類型的遮罩。如未設定,預設值為 READ_SOURCE_TYPE_CONTACTREAD_SOURCE_TYPE_PROFILE

回應主體

如果成功,回應主體會包含 Person 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/contacts.other.readonly
  • https://www.googleapis.com/auth/contacts

詳情請參閱授權指南