Skip to content

2020年5月

Google タグ マネージャー

Google タグ マネージャーを使用して Braze の Android SDK をデプロイおよび管理する方法についてのドキュメントと例を追加しました。

新しいブラックリストメールAPIエンドポイント

Braze API 経由で電子メール アドレスを ブラックリストに登録 できるようになりました。電子メール アドレスをブラックリストに登録すると、そのユーザーは電子メールの購読を解除され、ハード バウンスとしてマークされます。

Braze API エンドポイントの API キーの変更

2020 年 5 月現在、Braze はセキュリティを強化するために API キーの読み取り方法を変更しました。ここで、API キーをリクエスト ヘッダーとして渡す必要があります。例は、個々のエンドポイント ページの 「サンプル リクエスト」および 「API キーの説明」に記載されています。

Brazeは今後もサポートを続けていきます api_key リクエスト本文と URL パラメータを通じて渡されますが、最終的には廃止される予定です (TBD)。それに応じて API 呼び出しを更新します。これらの変更は Postman内で更新されました。

API Key Explanation

この例では、 /email/hard_bounces 終点。

前に:リクエスト本文の API キー

1
curl --location --request GET 'https://rest.iad-01.braze.com/email/hard_bounces?api_key={YOUR_REST_API_KEY}&start_date=2019-01-01&end_date=2019-02-01&limit=100&offset=1&[email protected]' \

今:ヘッダーの API キー

1
2
curl --location --request GET 'https://rest.iad-01.braze.com/email/hard_bounces?start_date=2019-01-01&end_date=2019-02-01&limit=100&offset=1&[email protected]' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

この例では、 /user/track 終点。

前に:リクエスト本文の API キー

1
2
3
4
5
6
7
8
9
10
11
12
13
14
curl --location --request POST 'https://rest.iad-01.braze.com/users/track' \
--header 'Content-Type: application/json' \
--data-raw '{
	"api_key": YOUR-API-KEY-HERE ,
	"attributes": [ 
 	{
 	  "external_id":"user_id",
      "string_attribute": "sherman",
      "boolean_attribute_1": true,
      "integer_attribute": 25,
      "array_attribute": ["banana", "apple"]
    }
    ]
}'

今:ヘッダーの API キー

1
2
3
4
5
6
7
8
9
10
11
12
13
14
curl --location --request POST 'https://rest.iad-01.braze.com/users/track' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY' \
--data-raw '{
	"attributes": [ 
 	{
	  "external_id":"user_id",
      "string_attribute": "sherman",
      "boolean_attribute_1": true,
      "integer_attribute": 25,
      "array_attribute": ["banana", "apple"]
    }
    ]
}'
「このページはどの程度役に立ちましたか?」
New Stuff!