List your Snapchat business organizations
snapchat-ads.organizationsList the Snapchat business organizations you belong to
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- —未確認
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.organizationsBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
with_ad_accounts | 真偽値 | 任意 | true nests each organization's ad accounts into the same response, saving the second call below | true |
- クエリパラメータ
with_ad_accounts真偽値任意true nests each organization's ad accounts into the same response, saving the second call below
例:
true
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。