• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Pavel Kolev · Apr 16 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 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 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 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

    Security auth question 1 Answer

    Call WriteCharacterEvent from a server 1 Answer

    Protecting my title from cloners 1 Answer

    What AWS region does US-Central (USCentral) correspond to? 1 Answer

    How can I access game data using apache php server ?,Can I access User data on apache server. 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

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

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges