移除 YouTube 水印
curl --request DELETE \
--url https://api.ayrshare.com/api/post/youTubeWatermark \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/post/youTubeWatermark', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/post/youTubeWatermark"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/post/youTubeWatermark",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://api.ayrshare.com/api/post/youTubeWatermark"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.ayrshare.com/api/post/youTubeWatermark")
.header("Authorization", "Bearer <token>")
.asString();{
"status": "success",
"message": "Watermark removed successfully"
}
{
"status": "error",
"code": 250,
"message": "Insufficient permissions to remove watermark from this channel",
"details": "Original YouTube API error message"
}
{
"status": "error",
"code": 226,
"message": "Channel not found or no watermark exists to remove",
"details": "Requested entity was not found."
}
YouTube
移除 YouTube 水印
从你的 YouTube 频道移除水印
DELETE
/
post
/
youTubeWatermark
移除 YouTube 水印
curl --request DELETE \
--url https://api.ayrshare.com/api/post/youTubeWatermark \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/post/youTubeWatermark', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/post/youTubeWatermark"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/post/youTubeWatermark",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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://api.ayrshare.com/api/post/youTubeWatermark"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.ayrshare.com/api/post/youTubeWatermark")
.header("Authorization", "Bearer <token>")
.asString();{
"status": "success",
"message": "Watermark removed successfully"
}
{
"status": "error",
"code": 250,
"message": "Insufficient permissions to remove watermark from this channel",
"details": "Original YouTube API error message"
}
{
"status": "error",
"code": 226,
"message": "Channel not found or no watermark exists to remove",
"details": "Requested entity was not found."
}
移除 YouTube 频道上现有的水印。此操作会从该频道所有已上传及未来上传的视频中移除水印。
Header 参数
Body 参数
此端点无需 body 参数。{
"status": "success",
"message": "Watermark removed successfully"
}
{
"status": "error",
"code": 250,
"message": "Insufficient permissions to remove watermark from this channel",
"details": "Original YouTube API error message"
}
{
"status": "error",
"code": 226,
"message": "Channel not found or no watermark exists to remove",
"details": "Requested entity was not found."
}
⌘I
