Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions 8 PlayFabSDK/PlayFabAdminApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
sessionTicket: null,
sdkVersion: "0.17.160502",
sdkVersion: "0.18.160523",
productionServerUrl: ".playfabapi.com",
logicServerUrl: null,

Expand Down Expand Up @@ -308,12 +308,6 @@ PlayFab.AdminApi = {
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetStoreItems", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
},

SetStoreSegmentOverrides: function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";

PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetStoreSegmentOverrides", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
},

SetTitleData: function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";

Expand Down
2 changes: 1 addition & 1 deletion 2 PlayFabSDK/PlayFabClientApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
sessionTicket: null,
sdkVersion: "0.17.160502",
sdkVersion: "0.18.160523",
productionServerUrl: ".playfabapi.com",
logicServerUrl: null,

Expand Down
2 changes: 1 addition & 1 deletion 2 PlayFabSDK/PlayFabMatchmakerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
sessionTicket: null,
sdkVersion: "0.17.160502",
sdkVersion: "0.18.160523",
productionServerUrl: ".playfabapi.com",
logicServerUrl: null,

Expand Down
8 changes: 7 additions & 1 deletion 8 PlayFabSDK/PlayFabServerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
sessionTicket: null,
sdkVersion: "0.17.160502",
sdkVersion: "0.18.160523",
productionServerUrl: ".playfabapi.com",
logicServerUrl: null,

Expand Down Expand Up @@ -440,6 +440,12 @@ PlayFab.ServerApi = {
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/RedeemMatchmakerTicket", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
},

SetGameServerInstanceState: function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";

PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SetGameServerInstanceState", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
},

AwardSteamAchievement: function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";

Expand Down
34 changes: 31 additions & 3 deletions 34 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,36 @@ To connect to the PlayFab service, your machine must be running TLS v1.2 or bett
* [Official Microsoft Documentation](https://msdn.microsoft.com/en-us/library/windows/desktop/aa380516%28v=vs.85%29.aspx)
* [Support for SSL/TLS protocols on Windows](http://blogs.msdn.com/b/kaushal/archive/2011/10/02/support-for-ssl-tls-protocols-on-windows.aspx)

3. Troubleshooting:

3. Example Project: PlayFabApiTest.html & PlayFabApiTest.js:
----

These files are an internal PlayFab testing project, which activates and tests the core functionality of the sdk. They are not part of the sdk. You should delete these two files before integrating the sdk with your project.

They require a testTitleData.json file to exist, which is described below.


4. testTitleData.json file required for example test files.
----

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": "your@email.com", // 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
}

This file must be created and placed in the root of the sdk (beside PlayFabApiTest.html & PlayFabApiTest.js), and must be named "testTitleData.json"


5. Troubleshooting:
----
For a complete list of available APIs, check out the [online documentation](http://api.playfab.com/Documentation/).

Expand All @@ -27,11 +56,10 @@ Our Developer Success Team can assist with answering any questions as well as pr
[Forums, Support and Knowledge Base](https://community.playfab.com/hc/en-us)


4. Copyright and Licensing Information:
6. Copyright and Licensing Information:
----
Apache License --
Version 2.0, January 2004
http://www.apache.org/licenses/

Full details available within the LICENSE file.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.