WebResource: getToken
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
승인 필요
인증된 사용자가 웹사이트나 도메인에 배치할 인증 토큰을 가져옵니다.
지금 사용해 보기
요청
HTTP 요청
POST https://www.googleapis.com/siteVerification/v1/token
승인
이 요청에는 다음 범위 중 최소 하나를 사용하여 인증이 필요합니다. (인증 및 승인에 대해 자세히 알아보기)
범위 |
https://www.googleapis.com/auth/siteverification |
https://www.googleapis.com/auth/siteverification.verify_only |
요청 본문
요청 본문에 다음과 같은 구조의 데이터를 제공합니다.
{
"site": {
"type": string,
"identifier": string
},
"verificationMethod": string
}
속성 이름 |
값 |
설명 |
참고 |
site |
object |
인증 토큰을 생성할 사이트의 주소 및 유형을 위한 컨테이너 입니다. |
|
site.type |
string |
확인할 리소스 유형입니다.
사용 가능한 값은 다음과 같습니다.
<ph type="x-smartling-placeholder"></ph>
- "
ANDROID_APP "
- "
INET_DOMAIN "
- "
SITE "
|
|
site.identifier |
string |
사이트 식별자입니다. 유형이 SITE 로 설정된 경우 식별자는 URL입니다. 유형이 INET_DOMAIN 로 설정된 경우 식별자는 도메인 이름입니다. |
|
verificationMethod |
string |
사이트 인증 시스템에서 이 사이트 또는 도메인을 확인하는 데 사용하는 확인 방법입니다.
사용 가능한 값은 다음과 같습니다.
<ph type="x-smartling-placeholder"></ph>
- "
ANALYTICS ": 사이트 전용
- '
DNS ': DNS_TXT를 대신 사용하세요.
- "
DNS_CNAME ": 도메인만
- "
DNS_TXT ": 도메인만
- "
FILE ": 사이트만
- "
META ": 사이트만
- "
TAG_MANAGER ": 사이트만
|
|
응답
요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.
{
"method": string,
"token": string
}
속성 이름 |
값 |
설명 |
참고 |
method |
string |
요청에서 선택한 인증 방법입니다.
사용 가능한 값은 다음과 같습니다.
<ph type="x-smartling-placeholder"></ph>
- "
ANALYTICS "
- "
DNS "
- "
DNS_CNAME "
- "
DNS_TXT "
- "
FILE "
- "
META "
- "
TAG_MANAGER "
|
|
token |
string |
선택한 확인 방법을 사용하여 인증된 사용자의 사이트에 배치할 문자열입니다. 자세한 내용은 시작하기 문서의 확인 방법 및 토큰을 참조하세요. |
|
사용해 보기
아래의 API 탐색기를 사용하여 실시간 데이터를 대상으로 이 메소드를 호출하고 응답을 확인해 보세요.
또는 독립형 탐색기를 사용해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-23(UTC)
[[["이해하기 쉬움","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-08-23(UTC)"],[[["Retrieves a verification token for website or domain ownership verification upon authorization."],["Supports various verification methods including `ANALYTICS`, `DNS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, and `TAG_MANAGER`."],["Requires specifying the site type (`SITE`, `INET_DOMAIN`, or `ANDROID_APP`) and identifier (URL or domain name)."],["Returns the selected verification method and the corresponding token to be placed on the site."],["Authorization is required with the `siteverification` or `siteverification.verify_only` scope."]]],["To get a verification token, send a POST request to the specified URL, including authorization with the correct scope. The request body must contain a `site` object with the `type` (e.g., `SITE`, `INET_DOMAIN`) and `identifier` (e.g., URL, domain name) of the site, as well as the desired `verificationMethod`. The successful response will return the chosen `method` and the `token` string to be placed on the site for verification.\n"]]