Skip to content

Commit 5350ab2

Browse files
https://api.playfab.com/releaseNotes/#171106
2 parents dfab218 + 0dcbe12 commit 5350ab2

16 files changed

+94
-22
lines changed

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ if(!PlayFab._internalSettings) {
122122
}
123123
}
124124

125-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_2";
126-
PlayFab.sdkVersion = "1.15.171102";
125+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126+
PlayFab.sdkVersion = "1.16.171106";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -310,6 +310,12 @@ PlayFab.AdminApi = {
310310
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPlayerIdFromAuthToken", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
311311
},
312312

313+
GetPlayerProfile: function (request, callback, customData, extraHeaders) {
314+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
315+
316+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPlayerProfile", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
317+
},
318+
313319
GetPlayerSegments: function (request, callback, customData, extraHeaders) {
314320
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
315321

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ if(!PlayFab._internalSettings) {
122122
}
123123
}
124124

125-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_2";
126-
PlayFab.sdkVersion = "1.15.171102";
125+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126+
PlayFab.sdkVersion = "1.16.171106";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -139,7 +139,7 @@ PlayFab.ClientApi = {
139139
IsClientLoggedIn: function () {
140140
return PlayFab._internalSettings.sessionTicket != null && PlayFab._internalSettings.sessionTicket.length > 0;
141141
},
142-
ForgetClientCredentials: function () {
142+
ForgetAllCredentials: function () {
143143
PlayFab._internalSettings.sessionTicket = null;
144144
},
145145

PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ if(!PlayFab._internalSettings) {
122122
}
123123
}
124124

125-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_2";
126-
PlayFab.sdkVersion = "1.15.171102";
125+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126+
PlayFab.sdkVersion = "1.16.171106";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";

PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ if(!PlayFab._internalSettings) {
122122
}
123123
}
124124

125-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_2";
126-
PlayFab.sdkVersion = "1.15.171102";
125+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126+
PlayFab.sdkVersion = "1.16.171106";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -604,6 +604,12 @@ PlayFab.ServerApi = {
604604
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SendCustomAccountRecoveryEmail", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
605605
},
606606

607+
SendEmailFromTemplate: function (request, callback, customData, extraHeaders) {
608+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
609+
610+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/SendEmailFromTemplate", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
611+
},
612+
607613
SendPushNotification: function (request, callback, customData, extraHeaders) {
608614
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
609615

PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ declare module PlayFabAdminModule {
156156
* https://api.playfab.com/Documentation/Admin/method/GetPlayerIdFromAuthToken
157157
*/
158158
GetPlayerIdFromAuthToken(request: PlayFabAdminModels.GetPlayerIdFromAuthTokenRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.GetPlayerIdFromAuthTokenResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
159+
/**
160+
* Retrieves the player's profile
161+
* https://api.playfab.com/Documentation/Admin/method/GetPlayerProfile
162+
*/
163+
GetPlayerProfile(request: PlayFabAdminModels.GetPlayerProfileRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.GetPlayerProfileResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
159164
/**
160165
* List all segments that a player currently belongs to at this moment in time.
161166
* https://api.playfab.com/Documentation/Admin/method/GetPlayerSegments

PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare module PlayFabClientModule {
44
export interface IPlayFabClient {
55
IsClientLoggedIn(): boolean;
6-
ForgetClientCredentials(): void;
6+
ForgetAllCredentials(): void;
77

88
/**
99
* Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the

PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ declare module PlayFabServerModule {
426426
* https://api.playfab.com/Documentation/Server/method/SendCustomAccountRecoveryEmail
427427
*/
428428
SendCustomAccountRecoveryEmail(request: PlayFabServerModels.SendCustomAccountRecoveryEmailRequest, callback: PlayFabModule.ApiCallback<PlayFabServerModels.SendCustomAccountRecoveryEmailResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
429+
/**
430+
* Sends an email based on an email template to a player's contact email
431+
* https://api.playfab.com/Documentation/Server/method/SendEmailFromTemplate
432+
*/
433+
SendEmailFromTemplate(request: PlayFabServerModels.SendEmailFromTemplateRequest, callback: PlayFabModule.ApiCallback<PlayFabServerModels.SendEmailFromTemplateResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
429434
/**
430435
* Sends an iOS/Android Push Notification to a specific user, if that user's device has been configured for Push
431436
* Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified.
@@ -3200,6 +3205,20 @@ declare module PlayFabServerModels {
32003205

32013206
}
32023207

3208+
/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendEmailFromTemplateRequest */
3209+
export interface SendEmailFromTemplateRequest extends PlayFabModule.IPlayFabRequestCommon {
3210+
/** The email template id of the email template to send. */
3211+
EmailTemplateId: string;
3212+
/** Unique PlayFab assigned ID of the user on whom the operation will be performed. */
3213+
PlayFabId: string;
3214+
3215+
}
3216+
3217+
/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendEmailFromTemplateResult */
3218+
export interface SendEmailFromTemplateResult extends PlayFabModule.IPlayFabResultCommon {
3219+
3220+
}
3221+
32033222
/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendPushNotificationRequest */
32043223
export interface SendPushNotificationRequest extends PlayFabModule.IPlayFabRequestCommon {
32053224
/**

PlayFabTestingExample/PlayFabApiTest.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PlayFabTestingExample/PlayFabApiTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ var PlayFabApiTests = {
522522
/// </summary>
523523
ForgetCredentials: function (assert): void {
524524
assert.ok(PlayFabClientSDK.IsClientLoggedIn(), "Client should be logged in.");
525-
PlayFabClientSDK.ForgetClientCredentials();
525+
PlayFabClientSDK.ForgetAllCredentials();
526526
assert.ok(!PlayFabClientSDK.IsClientLoggedIn(), "Client should NOT be logged in.");
527527
},
528528
};

PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ if(!PlayFab._internalSettings) {
122122
}
123123
}
124124

125-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_2";
126-
PlayFab.sdkVersion = "1.15.171102";
125+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126+
PlayFab.sdkVersion = "1.16.171106";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -310,6 +310,12 @@ PlayFab.AdminApi = {
310310
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPlayerIdFromAuthToken", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
311311
},
312312

313+
GetPlayerProfile: function (request, callback, customData, extraHeaders) {
314+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
315+
316+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPlayerProfile", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
317+
},
318+
313319
GetPlayerSegments: function (request, callback, customData, extraHeaders) {
314320
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
315321

0 commit comments

Comments
 (0)