• 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 Van houtte · Aug 07 at 04:46 PM ·

Unity Data Data impossible to retrieve

Hello,

I prefer to say first of all that I am a beginner in the online system.


That's my problem, I must currently harvest to give for my game and the transferred will see another character, but I am stuck at the beginning of the tutorial to transfer a data and the recovered impossible to recover this data here what I did.


Thank you for your help.

capture-decran-2019-08-07-181107.png (232.6 kB)
capture-decran-2019-08-07-181117.png (81.3 kB)
Comment

People who like this

0 Show 0
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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Aug 08 at 06:49 AM

According to the first line of Unity console, the problem seems to be trying to call client APIs without login in.

There are 3 main genres of APIs in PlayFab which are Client API, Server API, Entity API. What you have mentioned, the update player data related APIs, are Client APIs and they are designed for game players to access PlayFab service. Client APIs requires a valid session ticket that is returned from login API calls. That’s why you need to firstly login in. In Unity SDK, after the successful login, the encapsulated functions will automatically add session tickets and login information in to corresponding parameters so that you may call client APIs. Due to its asynchronous nature, you may implements functions in OnSuccess callback area to avoid error reporting.

We highly recommend you to make use of RESTful testing tools like Postman to test and learn PlayFab, you may find documentation here:

https://docs.microsoft.com/en-us/gaming/playfab/sdks/postman/. You will see the required field in the Http headers and Client APIs requires session ticket while Server API needs secret key. Entity related APIs requires entity token.

Meanwhile, the secret key is an identity of game developers or we can say the game manager, to manage the game. The actions like updating player internal data, changing statistics, directly granting items can be done with the help of secret key, which also means the secret key should not be exposed to any players. All the Server APIs and a part of Entity APIs require secret keys to perform. Cloud Script is a good application scenario to make use of server APIs.

Comment

People who like this

0 Show 0 · 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

Answer by Van houtte · Aug 08 at 06:01 PM

Thank you for your help !

Comment

People who like this

0 Show 0 · 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

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

    3 People are following this question.

    avatar image avatar image avatar image

    • 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