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.
- Prix
- $0.1476/successAu prix catalogue
- Taux de réussite
- —Aucune donnée de taux de réussite pour le moment30 derniers jours · 1 appels
- Latence p50
- ——
- Dernière vérification
- —Pas encore vérifié
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-principal-info-v1Beta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
biz | chaîne | Facultatif | WeChat Official Account biz id. Use one of biz, url, or wxid. | |
url | chaîne | Facultatif | WeChat Official Account article URL used to identify the account. Use one of biz, url, or wxid. | |
wxid | chaîne | Facultatif | WeChat Official Account wxid used to identify the account. Use one of biz, url, or wxid. | |
- Paramètres de requête
bizchaîneFacultatifWeChat Official Account biz id. Use one of biz, url, or wxid.
urlchaîneFacultatifWeChat Official Account article URL used to identify the account. Use one of biz, url, or wxid.
wxidchaîneFacultatifWeChat Official Account wxid used to identify the account. Use one of biz, url, or wxid.
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.1476/success, frais de service inclus.