WeChat Official Account principal info by id or URL
justoneapi.x.weixin-get-account-principal-info-v1Retrieves principal information for a WeChat Official Account identified by biz ID, article URL, or wxid.
- Preço
- $0.1476/successPelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 1 chamadas
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-principal-info-v1Beta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
biz | string | Opcional | WeChat Official Account biz id. Use one of biz, url, or wxid. | |
url | string | Opcional | WeChat Official Account article URL used to identify the account. Use one of biz, url, or wxid. | |
wxid | string | Opcional | WeChat Official Account wxid used to identify the account. Use one of biz, url, or wxid. | |
- Parâmetros de consulta
bizstringOpcionalWeChat Official Account biz id. Use one of biz, url, or wxid.
urlstringOpcionalWeChat Official Account article URL used to identify the account. Use one of biz, url, or wxid.
wxidstringOpcionalWeChat Official Account wxid used to identify the account. Use one of biz, url, or wxid.
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-principal-info-v1' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-principal-info-v1",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-principal-info-v1", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.1476/success, incluindo a taxa de serviço.