System
Regenerate access token
새로운 액세스 토큰을 재생성합니다.
POST
/
settings
/
access_token
Regenerate access token
curl --request POST \
--url https://your_a2_service/settings/access_token \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/settings/access_token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/settings/access_token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/settings/access_token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/settings/access_token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your_a2_service/settings/access_token")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/settings/access_token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"access_token": {
"access_token": "<string>",
"token_type": "Bearer"
},
"currency": "usd",
"external_channel_url": "<string>",
"language": "en",
"tls_domain": "<string>",
"tls_enable": true,
"yield_optimization": {
"ceiling_cpm": 123,
"floor_cpm": 123,
"yield_roas_balance": 0.5
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}인증
The access token received from the authorization server in the OAuth 2.0 flow.
응답
Successful Response
설정 스키마
액세스 토큰 정보
Show child attributes
Show child attributes
시스템에서 사용하는 통화 코드입니다. 예산 관리에 사용됩니다.
예시:
"usd"
"krw"
예산 관리에 사용될 외부 채널 URL
언어 코드
예시:
"en"
"ko"
TLS 도메인 이름
TLS 사용 여부
수익 최적화 설정
Show child attributes
Show child attributes
생성 일시
변경 일시
이 페이지가 도움이 되었나요?
⌘I
Regenerate access token
curl --request POST \
--url https://your_a2_service/settings/access_token \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/settings/access_token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/settings/access_token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/settings/access_token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/settings/access_token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your_a2_service/settings/access_token")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/settings/access_token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"access_token": {
"access_token": "<string>",
"token_type": "Bearer"
},
"currency": "usd",
"external_channel_url": "<string>",
"language": "en",
"tls_domain": "<string>",
"tls_enable": true,
"yield_optimization": {
"ceiling_cpm": 123,
"floor_cpm": 123,
"yield_roas_balance": 0.5
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "<string>"
}