question

Dylan Hunt avatar image
Dylan Hunt asked

What is the best way to distribute items en masse via email?

What is the best way, either postman or server/admin API, to add x item to bulk accounts via their email address? Is there an API call that can do this? I thought I saw one a while back, but I can no longer find it!

For example, we promised a free item to those that signed up long ago (1600 players). That would be awful to assign them 1-by-1. I'm sure an alternative is to make a coupon and email them, however this is a system we should probably setup anyway, so I'd rather do it programatically, if possible.

apisAccount ManagementPlayer Inventory
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

You can use https://api.playfab.com/Documentation/Admin/method/GetUserAccountInfo to look up the account in order to get the PlayFab IDs, then https://api.playfab.com/Documentation/Admin/method/GrantItemsToUsers to grant the items. Please be aware that if it's a lot of users/items, this will take a while to process.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.