HTTP 请求
curl https://api.iagenify.com/api/mail/avatars/CLE -X GETJavaScript
const response = await fetch("https://api.iagenify.com/api/mail/avatars/CLE", {
method: "GET",
headers: {}
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);Python
import os
import requests
response = requests.request("GET", "https://api.iagenify.com/api/mail/avatars/CLE", headers={}, timeout=30)
response.raise_for_status()
result = response.json()路径参数
clestring必填:cle 的值。
响应与错误
成功时,端点返回 JSON。明确列出的状态码:404。错误代码:avatar_not_found。