question

Corvus Admin avatar image
Corvus Admin asked

Call WriteCharacterEvent from a server

Hello, we would like to send analytics event from an Unreal server with WriteCharacterEvent, but for specific CharacterId linked to account authenticate with Unreal client. We will authenticate our Unreal server with a dedicated server account, but we are not sure that Playfab will accept event for a CharacterId that does not belong to this dedicated server account. Will it work ? Or is there another solution to do so ? Thanks

Account ManagementAuthenticationunrealanalytics
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

·
jital avatar image
jital answered

Yes, this will work. The WriteCharacterEvent API call documentation states that the CharacterId parameter is for a character that belongs to a user. In PlayFab the server is not a user, so making this call does not require the supplied characterId to belong to the server. This Server API exists to prevent clients from writing fraudulent events to the Title.

1 comment
10 |1200

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

Corvus Admin avatar image Corvus Admin commented ·

Hello,

thanks for answer. Indeed, we didn't pay attention that they where 2 differents API, that's exactly what we were looking for. Thanks you

0 Likes 0 ·

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.