List your Snapchat business organizations
snapchat-ads.organizationsList the Snapchat business organizations you belong to
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.organizationsBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| 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
Exemplo:
true
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());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 free, incluindo a taxa de serviço.