Request an ad provider
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/ads/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providerName": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({providerName: '<string>', note: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/ads/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/ads/requests"
payload = {
"providerName": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Ads
Request an ad provider
Ask for an advertising provider that is not in the connected list.
POST
/
v1
/
projects
/
{projectId}
/
ads
/
requests
Request an ad provider
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/ads/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providerName": "<string>",
"note": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({providerName: '<string>', note: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/ads/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/ads/requests"
payload = {
"providerName": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}