- Overview:
SDK for C#/.net environments other than Unity, including Microsoft CLR environments, Mono and Xamarin.
- Prerequisites:
- Users should be very familiar with the topics covered in our getting started guide.
To connect to the PlayFab service, your machine must be running TLS v1.2 or better.
- For Windows, this means Windows 7 and above
- Official Microsoft Documentation
- Support for SSL/TLS protocols on Windows
- Source Code & Key Repository Components:
This package contains three different versions of the PlayFab SDK.
- PlayFabClientSDK - This version contains only client libraries and is designed for integration with your game client
- PlayFabServerSDK - Contains server and admin APIs designed to be called from your custom logic server or build process
- PlayFabSDK - Contains all APIs in one SDK, as well as a unit-test project
- Usage Instructions:
- All users will want to download the latest SDK: https://github.com/PlayFab/CSharpSDK/releases
- For beginners or quick evaluation, please start with the included example project, and add your own logic and api calls. For advanced users, or users with an existing project, please copy the source from one of the SDK folders into your project.
- A testTitleData.json file required for example UnitTestRunner project
This sdk includes an optional example project that is used by PlayFab to verify sdk features are fully functional. The testTitleData.json file provides your secret title information to the unit-test project, so it can execute tests in your own PlayFab title.
The format is as follows:
{
"titleId": "your Game Title ID, found in the settings/credentials section of your dashboard on the website",
"developerSecretKey": "your PlayFab API Secret Key, found in the settings/credentials section of your dashboard on the website - NEVER SHARE THIS KEY WITH PLAYERS",
"titleCanUpdateSettings": "false", // "true" or "false", based on your Allow Client to Post Player Statistics option, found in the settings/general section of your dashboard on the website
"userName": "testUser", // Arbitrary username, you can change this to any valid username
"userEmail": "[email protected]", // This email address will be bound to the username above
"userPassword": "testPassword", // This must be the correct password for the testUser above (if that user does not exist yet, this will be the new password)
"characterName": "testCharacter" // Arbitrary characterName, you can change this to any valid characterName
}
When running the UnitTestRunner example/testing project, provide the command line inputs " -testInputsFile ". This will read the json file at that location, and attempt to interpret it as the testTitleData.json format.
- Troubleshooting:
For a complete list of available APIs, check out the online documentation.
We love to hear from our developer community! Do you have ideas on how we can make our products and services better?
Our Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services.
Forums, Support and Knowledge Base
- Copyright and Licensing Information:
Apache License -- Version 2.0, January 2004 http://www.apache.org/licenses/
Full details available within the LICENSE file.