데이터 이전
Data Transfer API를 사용하려면 전송을 정의한 다음 insert
메서드를 사용하여 전송을 시작합니다. 전송은 데이터가 전송될 하나 이상의 애플리케이션 측면에서 정의되며 애플리케이션별 매개변수를 포함할 수 있습니다.
다음은 이전 프로세스를 개괄적으로 요약한 내용입니다.
- 데이터를 전송할 애플리케이션을 결정합니다.
- 소스 및 대상 사용자와 데이터를 전송할 애플리케이션을 지정하는
DataTransfer
리소스를 정의합니다.
insert()
메서드를 사용하여 전송을 시작합니다.
예를 들어 다음 JSON 요청 본문은 캘린더를 소스 사용자 (SOURCE_USER_ID
)의 대상 사용자(DESTINATION_USER_ID
)로 전송합니다. Directory API의 user.get()
메서드를 호출하고 이메일 주소 또는 이메일 별칭을 제공하여 각 소유자의 사용자 ID를 검색할 수 있습니다.
{
"oldOwnerUserId": "SOURCE_USER_ID",
"newOwnerUserId": "DESTINATION_USER_ID",
"applicationDataTransfers": [
{
"applicationId": "435070579839",
"applicationTransferParams": [
{
"key": "RELEASE_RESOURCES",
"value": [
"TRUE"
]
}
]
}
]
}
Data Transfer API에는 전송을 구성하고 관리하는 데 도움이 되는 추가 메서드와 리소스가 포함되어 있어 다음과 같은 작업을 수행할 수 있습니다.
- 데이터 전송에 사용할 수 있는 애플리케이션을 나열합니다.
- 애플리케이션 ID별로 애플리케이션 정보를 가져옵니다.
- 소스 사용자, 대상 사용자 또는 상태별로 전송을 나열합니다.
- 리소스 ID별로 전송 요청을 가져옵니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-09-14(UTC)
[null,null,["최종 업데이트: 2023-09-14(UTC)"],[[["The Data Transfer API allows you to transfer data between users for specific applications, such as calendars, by defining a transfer and initiating it with the `insert` method."],["You need to define a `DataTransfer` resource which identifies the source and destination users, along with the applications and their parameters for data transfer."],["The process involves determining the applications, defining the transfer resource, and initiating the transfer using the `insert()` method."],["You can use the Data Transfer API to list available applications, retrieve application details, and manage transfer requests by listing or getting them based on user or status."]]],["Define a data transfer by specifying source and destination users and the applications involved. This is done by creating a `DataTransfer` resource. Initiate the transfer using the `insert()` method. Retrieve user IDs via the Directory API's `user.get()` method. Additional actions include listing applications, retrieving application information, listing transfers, and retrieving transfer requests. Application-specific parameters can be included. An example is provided of transferring a calendar.\n"]]