Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Pavel Kolev · Apr 16, 2019 at 09:10 PM · Custom Game ServersAuthenticationanalytics

Custom Server authentication flow for analytics

Hi all,

Just getting started with PlayFab - so far looks amazing.

We currently have a nodejs server that we want to track custom events for analytics purposes. We are trying to use https://api.playfab.com/documentation/Client/method/WriteTitleEvent

However, it requires user_session_ticket_value for X-Authentication header.

How can we obtain that? I guess the proper way should be to use the secret key but we couldn't make it work with X-SecretKey either.

So what would be the workflow for authenticating server with secret key and making request for WriteTitleEvent?

Thanks :)

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jital ♦ · Apr 16, 2019 at 09:46 PM 0
Share

Hello,

Would you be able to provide more details such as the code you are using? WriteTitleEvent API call doesn't require a user_session_ticket. If you use WriteTitleEvent from the Server API you will need to include your developer secret key in PlayFabSettings (if using Unity or Unreal).

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Pavel Kolev · Apr 17, 2019 at 06:13 AM

@jital

I was missing

.set({"Accept-Encoding" : "gzip,sdch"})

That solved the problem.

However, now I can see my data on the PlayStream monitor but nothing is visualized in the Events History.

Any ideas?

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jital ♦ · Apr 17, 2019 at 10:30 PM 0
Share

Is your Event History still empty? There have been some recent changes to Events History and it may have affected your views.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Protecting my title from cloners 1 Answer

    How to redeem matchmaking ticket in Thunderhead and Matchmaker (Preview)? 1 Answer

    Authenticating a Server with an External API 1 Answer

    Best Practices For PlayFab OSS Unreal Engine 1 Answer

    Authenticating multiplayer binary to call CloudScript Functions? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges