Skip to content

Commit 33ab71a

Browse files
author
Paul Gilmore
committed
* Readme testTitleData.json update * https://api.playfab.com/releaseNotes#160523 (#56) * Automated build from Jenkins * Automated build from Jenkins * Automated build from Jenkins * Automated build from Jenkins * Automated build from Jenkins * Automated build from Jenkins * Automated build from Jenkins
1 parent ac5be38 commit 33ab71a

File tree

5 files changed

+41
-13
lines changed

5 files changed

+41
-13
lines changed

PlayFabSDK/PlayFabAdminApi.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.17.160502",
21+
sdkVersion: "0.18.160523",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

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

311-
SetStoreSegmentOverrides: function (request, callback) {
312-
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
313-
314-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetStoreSegmentOverrides", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
315-
},
316-
317311
SetTitleData: function (request, callback) {
318312
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
319313

PlayFabSDK/PlayFabClientApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.17.160502",
21+
sdkVersion: "0.18.160523",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

PlayFabSDK/PlayFabMatchmakerApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.17.160502",
21+
sdkVersion: "0.18.160523",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

PlayFabSDK/PlayFabServerApi.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.17.160502",
21+
sdkVersion: "0.18.160523",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

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

443+
SetGameServerInstanceState: function (request, callback) {
444+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
445+
446+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SetGameServerInstanceState", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
447+
},
448+
443449
AwardSteamAchievement: function (request, callback) {
444450
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
445451

README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,36 @@ To connect to the PlayFab service, your machine must be running TLS v1.2 or bett
1414
* [Official Microsoft Documentation](https://msdn.microsoft.com/en-us/library/windows/desktop/aa380516%28v=vs.85%29.aspx)
1515
* [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)
1616

17-
3. Troubleshooting:
17+
18+
3. Example Project: PlayFabApiTest.html & PlayFabApiTest.js:
19+
----
20+
21+
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.
22+
23+
They require a testTitleData.json file to exist, which is described below.
24+
25+
26+
4. testTitleData.json file required for example test files.
27+
----
28+
29+
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.
30+
31+
The format is as follows:
32+
33+
{
34+
"titleId": "your Game Title ID, found in the settings/credentials section of your dashboard on the website",
35+
"developerSecretKey": "your PlayFab API Secret Key, found in the settings/credentials section of your dashboard on the website - NEVER SHARE THIS KEY WITH PLAYERS",
36+
"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
37+
"userName": "testUser", // Arbitrary username, you can change this to any valid username
38+
"userEmail": "your@email.com", // This email address will be bound to the username above
39+
"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)
40+
"characterName": "testCharacter" // Arbitrary characterName, you can change this to any valid characterName
41+
}
42+
43+
This file must be created and placed in the root of the sdk (beside PlayFabApiTest.html & PlayFabApiTest.js), and must be named "testTitleData.json"
44+
45+
46+
5. Troubleshooting:
1847
----
1948
For a complete list of available APIs, check out the [online documentation](http://api.playfab.com/Documentation/).
2049

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

2958

30-
4. Copyright and Licensing Information:
59+
6. Copyright and Licensing Information:
3160
----
3261
Apache License --
3362
Version 2.0, January 2004
3463
http://www.apache.org/licenses/
3564

3665
Full details available within the LICENSE file.
37-

0 commit comments

Comments
 (0)