From 4fc9c36bc706d36f56f546c4ab6fb05f46de35df Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Wed, 13 Apr 2016 16:32:37 +0000 Subject: [PATCH 1/6] Automated build from Jenkins --- PlayFabSDK/PlayFabClientApi.js | 18 ++++++++++++++++++ PlayFabSDK/PlayFabServerApi.js | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/PlayFabSDK/PlayFabClientApi.js b/PlayFabSDK/PlayFabClientApi.js index 76829852..91735841 100644 --- a/PlayFabSDK/PlayFabClientApi.js +++ b/PlayFabSDK/PlayFabClientApi.js @@ -719,6 +719,24 @@ PlayFab.ClientApi = { PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LogEvent", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); }, + WriteCharacterEvent: function (request, callback) { + if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/WriteCharacterEvent", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); + }, + + WritePlayerEvent: function (request, callback) { + if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/WritePlayerEvent", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); + }, + + WriteTitleEvent: function (request, callback) { + if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/WriteTitleEvent", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); + }, + AddSharedGroupMembers: function (request, callback) { if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; diff --git a/PlayFabSDK/PlayFabServerApi.js b/PlayFabSDK/PlayFabServerApi.js index 6c4d7988..b4780959 100644 --- a/PlayFabSDK/PlayFabServerApi.js +++ b/PlayFabSDK/PlayFabServerApi.js @@ -446,6 +446,24 @@ PlayFab.ServerApi = { PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/LogEvent", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); }, + WriteCharacterEvent: 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/WriteCharacterEvent", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + + WritePlayerEvent: 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/WritePlayerEvent", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + + WriteTitleEvent: 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/WriteTitleEvent", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + AddSharedGroupMembers: function (request, callback) { if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method"; From 7c06508f0c09329ae0426251b4eee62550db6620 Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Wed, 13 Apr 2016 16:43:34 +0000 Subject: [PATCH 2/6] Automated build from Jenkins --- PlayFabApiTest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PlayFabApiTest.js b/PlayFabApiTest.js index 76c82dd9..df7cc6d0 100644 --- a/PlayFabApiTest.js +++ b/PlayFabApiTest.js @@ -563,8 +563,7 @@ var PlayFabApiTests = { /// /// CLIENT API - /// Try to deliberately register a character with an invalid email and password. - /// Verify that errorDetails are populated correctly. + /// Test that the client can publish custom PlayStream events /// WriteEvent: function (assert) { var writeEventDone = assert.async(); From 303ad39138433f18b2334b17bb0397fd24bea73a Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Wed, 13 Apr 2016 20:27:37 +0000 Subject: [PATCH 3/6] Automated build from Jenkins --- PlayFabApiTest.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/PlayFabApiTest.js b/PlayFabApiTest.js index df7cc6d0..0aaeb0ce 100644 --- a/PlayFabApiTest.js +++ b/PlayFabApiTest.js @@ -570,15 +570,9 @@ var PlayFabApiTests = { var writeEventRequest = { // Currently, you need to look up the correct format for this object in the API-docs: - // https://api.playfab.com/Documentation/Client/method/WriteEvent + // https://api.playfab.com/Documentation/Client/method/WritePlayerEvent "Event": { - "EventName": "forum_post_event", - "EventNamespace": "com.mygame.forums", - "EntityType": "player", - "Timestamp": "2014-03-07T00:00:00Z", // TODO: Write a current timestamp-string in the correct format - "CustomTags": { - "Region": "US-East" - }, + "EventName": "ForumPostEvent", "Subject": "My First Post", "Body": "This is my awesome post." } From b283e2920df6d8b473ba67af81346de786e058e2 Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Wed, 13 Apr 2016 22:48:13 +0000 Subject: [PATCH 4/6] Automated build from Jenkins --- PlayFabApiTest.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PlayFabApiTest.js b/PlayFabApiTest.js index 0aaeb0ce..be1c6bc8 100644 --- a/PlayFabApiTest.js +++ b/PlayFabApiTest.js @@ -571,11 +571,9 @@ var PlayFabApiTests = { var writeEventRequest = { // Currently, you need to look up the correct format for this object in the API-docs: // https://api.playfab.com/Documentation/Client/method/WritePlayerEvent - "Event": { - "EventName": "ForumPostEvent", - "Subject": "My First Post", - "Body": "This is my awesome post." - } + "EventName": "ForumPostEvent", + "Subject": "My First Post", + "Body": "This is my awesome post." }; var writeEventCallback = function (result, error) { From b015af5d36351c52372408ea452d25a211a3cfaa Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Thu, 14 Apr 2016 23:13:32 +0000 Subject: [PATCH 5/6] Automated build from Jenkins --- PlayFabApiTest.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PlayFabApiTest.js b/PlayFabApiTest.js index be1c6bc8..adb76a22 100644 --- a/PlayFabApiTest.js +++ b/PlayFabApiTest.js @@ -572,8 +572,10 @@ var PlayFabApiTests = { // Currently, you need to look up the correct format for this object in the API-docs: // https://api.playfab.com/Documentation/Client/method/WritePlayerEvent "EventName": "ForumPostEvent", - "Subject": "My First Post", - "Body": "This is my awesome post." + "Body": { + "Subject": "My First Post", + "Body": "This is my awesome post." + } }; var writeEventCallback = function (result, error) { From 1bf263acd742868bb47b4e074cf4b8e166926c9b Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Thu, 14 Apr 2016 23:27:48 +0000 Subject: [PATCH 6/6] Automated build from Jenkins --- PlayFabSDK/PlayFabAdminApi.js | 2 +- PlayFabSDK/PlayFabClientApi.js | 2 +- PlayFabSDK/PlayFabMatchmakerApi.js | 2 +- PlayFabSDK/PlayFabServerApi.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PlayFabSDK/PlayFabAdminApi.js b/PlayFabSDK/PlayFabAdminApi.js index 8697e63b..e27ce164 100644 --- a/PlayFabSDK/PlayFabAdminApi.js +++ b/PlayFabSDK/PlayFabAdminApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.14.160411", + sdkVersion: "0.15.160414", productionServerUrl: ".playfabapi.com", logicServerUrl: null, diff --git a/PlayFabSDK/PlayFabClientApi.js b/PlayFabSDK/PlayFabClientApi.js index 91735841..76b78d1d 100644 --- a/PlayFabSDK/PlayFabClientApi.js +++ b/PlayFabSDK/PlayFabClientApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.14.160411", + sdkVersion: "0.15.160414", productionServerUrl: ".playfabapi.com", logicServerUrl: null, diff --git a/PlayFabSDK/PlayFabMatchmakerApi.js b/PlayFabSDK/PlayFabMatchmakerApi.js index 1b88b870..e75e05f6 100644 --- a/PlayFabSDK/PlayFabMatchmakerApi.js +++ b/PlayFabSDK/PlayFabMatchmakerApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.14.160411", + sdkVersion: "0.15.160414", productionServerUrl: ".playfabapi.com", logicServerUrl: null, diff --git a/PlayFabSDK/PlayFabServerApi.js b/PlayFabSDK/PlayFabServerApi.js index b4780959..71908146 100644 --- a/PlayFabSDK/PlayFabServerApi.js +++ b/PlayFabSDK/PlayFabServerApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.14.160411", + sdkVersion: "0.15.160414", productionServerUrl: ".playfabapi.com", logicServerUrl: null,