PlayFab API

The PlayFab API plugin integrates the JavaScript SDK for the PlayFab service in Construct 3 or Construct 2. It is a requirement to run any plugin in the PlayFab Master Collection.


With this plugin, you are able to take advantage of all account system features available in PlayFab into your game application. You are then able to start calling PlayFab methods, or use the collection plugin to do them for you.


It is required to include this plugin into your project before using any other PlayFab plugins.

PlayFab API v2.png

Introduction

Step 1.png

The Construct Master Collection supports the full and easy integration of the PlayFab service for both Construct 3 and Construct 2.


Please click here to learn more about PlayFab.

Features


Here are some of the features of the PlayFab service:

  • Account management

  • Account information system

  • Authoritative server

  • Studio and games support

  • Game application data, shared across all users.

  • Studio applications data, shared across all games and users under a studio.

  • User game data

  • User studio data

  • Authentication

  • Email, username, password or company login

  • Cryptography or custom identification

  • Android login

  • iOS login

  • Apple Sign In

  • Authentication linking, able to add or remove authentication methods.

  • Social connect authentications

  • Leaderboards

  • Leaderboards with social connect to Steam and Xbox games

  • Email management system

  • Analytics

  • Advertisements, with compliant advertising.

  • Google AdSense

  • Google Admob

  • IronSource mediation collection

  • Player management

  • Player information system

  • Server clock, time management features

  • Friend management, sync features with friends.

  • Store features, including catalogs and inventories.

  • Currencies, both virtual and real monetary currencies.

  • In-App Purchases and In-App Billing support.

  • Content Delivery Network (CDN)

  • Cloud Script, easily write your own personalized server scripts in JavaScript.

  • Photon Realtime, a cloud based multiplayer plugin for Construct 3 and Construct 2, with full PlayFab integration.

  • Photon Chat, a cloud based multiplayer chat plugin for Construct 3 and Construct 2, with full PlayFab integration.


For more information about all the integrated PlayFab service features, please click here to learn the introductory lessons to PlayFab.


Editor Features


Here are some of the features in the Construct editor:

  • All platforms support, including web, mobile and desktop.

  • Native mobile integration

  • Construct 3 mobile app build service support.

  • Android Studio

  • Xcode

  • Cordova CLI

 
 

How to use?

It is easy to use the PlayFab API plugin, you will only need to follow the steps below.


1. Add the PlayFab API addon into your project.



2. Log in to your PlayFab account, or sign up if you do not have one yet.


3. Then, create a project and copy its title id.




4. From your Construct 3 project, click the PlayFab API object.


5. Then, go to the Properties Bar while the object is selected. This will show the Title Id property where you will input the value from the one in your PlayFab Console.


6. Finally, set the other plugin properties.

  • Debug Mode - allows the PlayFab Master Collection to make logs of the response JSON data from the PlayFab servers. This is very important when it comes to debugging received server data. The logs are accessible through the Developer Console, which is launched by pressing (F12) during preview.

  • Client Profile Data - are additional data you want included in the response callback from the PlayFab servers. This is only ran when the server allows that type of response for the command.

  • Client Sensitive Data - are additional sensitive data you want included in the response callback from the PlayFab servers. This is only ran when the server allows that type of response for the command. Compared to the Client Profile Data, these server responses are sensitive, therefore should be taken precaution before allowing to be received by the client.

7. Finally, you can now use the PlayFab API object, and include more PlayFab addons for more features.


 

Documentation