List your Snapchat business organizations
snapchat-ads.organizationsList the Snapchat business organizations you belong to
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.organizationsBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
the mandatory first call: an organization id is the only way into the ad accounts. GET /me alone returns just the member's own id and email
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
with_ad_accounts | booleano | Opcional | true nests each organization's ad accounts into the same response, saving the second call below | true |
- Parámetros de consulta
with_ad_accountsbooleanoOpcionaltrue nests each organization's ad accounts into the same response, saving the second call below
Ejemplo:
true
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.organizations' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.organizations",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/snapchat-ads.organizations", {
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());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.