-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayFabClientApi.lua
1765 lines (1580 loc) · 148 KB
/
PlayFabClientApi.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- PlayFab Client API
-- This is the main file you should require in your game
-- All api calls are documented here: https://docs.microsoft.com/gaming/playfab/api-references/
-- Example code:
-- local PlayFabClientApi = require("PlayFab/PlayFabClientApi")
-- PlayFabClientApi.<ClientApiCall>(request, successCallbackFunc, errorCallbackFunc)
local IPlayFabHttps = require("PlayFab/IPlayFabHttps")
local PlayFabSettings = require("PlayFab/PlayFabSettings")
local PlayFabClientApi = {
settings = PlayFabSettings.settings
}
function PlayFabClientApi.IsClientLoggedIn()
return (not (PlayFabSettings._internalSettings.sessionTicket == nil))
end
-- Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the
-- allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted
-- items will be swapped between the two players' inventories.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade#accepttraderequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade#accepttraderesponse
function PlayFabClientApi.AcceptTrade(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AcceptTrade", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user. At
-- least one of FriendPlayFabId,FriendUsername,FriendEmail, or FriendTitleDisplayName should be initialized.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend#addfriendrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend#addfriendresult
function PlayFabClientApi.AddFriend(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddFriend", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab
-- ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as
-- authentication credentials, as the intent is that it is easily accessible by other players.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid#addgenericidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid#addgenericidresult
function PlayFabClientApi.AddGenericID(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddGenericID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Adds or updates a contact email to the player's profile.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail#addorupdatecontactemailrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail#addorupdatecontactemailresult
function PlayFabClientApi.AddOrUpdateContactEmail(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddOrUpdateContactEmail", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only users
-- in the group can add new members. Shared Groups are designed for sharing data between a very small number of players,
-- please see our guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers#addsharedgroupmembersrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers#addsharedgroupmembersresult
function PlayFabClientApi.AddSharedGroupMembers(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddSharedGroupMembers", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Adds playfab username/password auth to an existing account created via an anonymous auth method, e.g. automatic device
-- ID login.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword#addusernamepasswordrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword#addusernamepasswordresult
function PlayFabClientApi.AddUsernamePassword(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddUsernamePassword", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Increments the user's balance of the specified virtual currency by the stated amount
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency#adduservirtualcurrencyrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency#modifyuservirtualcurrencyresult
function PlayFabClientApi.AddUserVirtualCurrency(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddUserVirtualCurrency", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Registers the Android device to receive push notifications
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration#androiddevicepushnotificationregistrationrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration#androiddevicepushnotificationregistrationresult
function PlayFabClientApi.AndroidDevicePushNotificationRegistration(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AndroidDevicePushNotificationRegistration", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Attributes an install for advertisment.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall#attributeinstallrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall#attributeinstallresult
function PlayFabClientApi.AttributeInstall(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AttributeInstall", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade
-- can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other
-- players from accepting them, for trades that can be claimed by more than one player).
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade#canceltraderequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade#canceltraderesponse
function PlayFabClientApi.CancelTrade(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/CancelTrade", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and virtual
-- currency balances as appropriate
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase#confirmpurchaserequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase#confirmpurchaseresult
function PlayFabClientApi.ConfirmPurchase(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConfirmPurchase", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem#consumeitemrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem#consumeitemresult
function PlayFabClientApi.ConsumeItem(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConsumeItem", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Grants the player's current entitlements from Microsoft Store's Collection API
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumemicrosoftstoreentitlements
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumemicrosoftstoreentitlements#consumemicrosoftstoreentitlementsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumemicrosoftstoreentitlements#consumemicrosoftstoreentitlementsresponse
function PlayFabClientApi.ConsumeMicrosoftStoreEntitlements(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConsumeMicrosoftStoreEntitlements", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Checks for any new PS5 entitlements. If any are found, they are consumed (if they're consumables) and added as PlayFab
-- items
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumeps5entitlements
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumeps5entitlements#consumeps5entitlementsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumeps5entitlements#consumeps5entitlementsresult
function PlayFabClientApi.ConsumePS5Entitlements(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConsumePS5Entitlements", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Checks for any new consumable entitlements. If any are found, they are consumed and added as PlayFab items
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements#consumepsnentitlementsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements#consumepsnentitlementsresult
function PlayFabClientApi.ConsumePSNEntitlements(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConsumePSNEntitlements", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Grants the player's current entitlements from Xbox Live, consuming all availble items in Xbox and granting them to the
-- player's PlayFab inventory. This call is idempotent and will not grant previously granted items to the player.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements#consumexboxentitlementsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements#consumexboxentitlementsresult
function PlayFabClientApi.ConsumeXboxEntitlements(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ConsumeXboxEntitlements", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Requests the creation of a shared group object, containing key/value pairs which may be updated by all members of the
-- group. Upon creation, the current user will be the only member of the group. Shared Groups are designed for sharing data
-- between a very small number of players, please see our guide:
-- https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup#createsharedgrouprequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup#createsharedgroupresult
function PlayFabClientApi.CreateSharedGroup(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/CreateSharedGroup", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Executes a CloudScript function, with the 'currentPlayerId' set to the PlayFab ID of the authenticated player. The
-- PlayFab ID is the entity ID of the player's master_player_account entity.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript#executecloudscriptrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript#executecloudscriptresult
function PlayFabClientApi.ExecuteCloudScript(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ExecuteCloudScript", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the user's PlayFab account details
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo#getaccountinforequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo#getaccountinforesult
function PlayFabClientApi.GetAccountInfo(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetAccountInfo", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Returns a list of ad placements and a reward for each
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements#getadplacementsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements#getadplacementsresult
function PlayFabClientApi.GetAdPlacements(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetAdPlacements", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Lists all of the characters that belong to a specific user. CharacterIds are not globally unique; characterId must be
-- evaluated with the parent PlayFabId to guarantee uniqueness.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters#listuserscharactersrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters#listuserscharactersresult
function PlayFabClientApi.GetAllUsersCharacters(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetAllUsersCharacters", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems#getcatalogitemsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems#getcatalogitemsresult
function PlayFabClientApi.GetCatalogItems(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCatalogItems", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the title-specific custom data for the character which is readable and writable by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata#getcharacterdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata#getcharacterdataresult
function PlayFabClientApi.GetCharacterData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCharacterData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the specified character's current inventory of virtual goods
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory#getcharacterinventoryrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory#getcharacterinventoryresult
function PlayFabClientApi.GetCharacterInventory(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCharacterInventory", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked characters for the given statistic, starting from the indicated point in the leaderboard
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard#getcharacterleaderboardrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard#getcharacterleaderboardresult
function PlayFabClientApi.GetCharacterLeaderboard(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCharacterLeaderboard", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the title-specific custom data for the character which can only be read by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata#getcharacterdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata#getcharacterdataresult
function PlayFabClientApi.GetCharacterReadOnlyData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCharacterReadOnlyData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the details of all title-specific statistics for the user
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics#getcharacterstatisticsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics#getcharacterstatisticsresult
function PlayFabClientApi.GetCharacterStatistics(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCharacterStatistics", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP GET to the returned
-- URL will attempt to download the content. A HEAD query to the returned URL will attempt to retrieve the metadata of the
-- content. Note that a successful result does not guarantee the existence of this content - if it has not been uploaded,
-- the query to retrieve the data will fail. See this post for more information:
-- https://community.playfab.com/hc/community/posts/205469488-How-to-upload-files-to-PlayFab-s-Content-Service. Also,
-- please be aware that the Content service is specifically PlayFab's CDN offering, for which standard CDN rates apply.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl#getcontentdownloadurlrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl#getcontentdownloadurlresult
function PlayFabClientApi.GetContentDownloadUrl(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetContentDownloadUrl", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Get details about all current running game servers matching the given parameters.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getcurrentgames
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getcurrentgames#currentgamesrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getcurrentgames#currentgamesresult
function PlayFabClientApi.GetCurrentGames(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetCurrentGames", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in
-- the leaderboard
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard#getfriendleaderboardrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard#getleaderboardresult
function PlayFabClientApi.GetFriendLeaderboard(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetFriendLeaderboard", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked friends of the current player for the given statistic, centered on the requested PlayFab
-- user. If PlayFabId is empty or null will return currently logged in user.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer#getfriendleaderboardaroundplayerrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer#getfriendleaderboardaroundplayerresult
function PlayFabClientApi.GetFriendLeaderboardAroundPlayer(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetFriendLeaderboardAroundPlayer", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the current friend list for the local user, constrained to users who have PlayFab accounts. Friends from
-- linked accounts (Facebook, Steam) are also included. You may optionally exclude some linked services' friends.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist#getfriendslistrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist#getfriendslistresult
function PlayFabClientApi.GetFriendsList(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetFriendsList", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Get details about the regions hosting game servers matching the given parameters.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getgameserverregions
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getgameserverregions#gameserverregionsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getgameserverregions#gameserverregionsresult
function PlayFabClientApi.GetGameServerRegions(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetGameServerRegions", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard#getleaderboardrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard#getleaderboardresult
function PlayFabClientApi.GetLeaderboard(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboard", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked characters for the given statistic, centered on the requested Character ID
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter#getleaderboardaroundcharacterrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter#getleaderboardaroundcharacterresult
function PlayFabClientApi.GetLeaderboardAroundCharacter(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboardAroundCharacter", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of ranked users for the given statistic, centered on the requested player. If PlayFabId is empty or
-- null will return currently logged in user.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer#getleaderboardaroundplayerrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer#getleaderboardaroundplayerresult
function PlayFabClientApi.GetLeaderboardAroundPlayer(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboardAroundPlayer", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a list of all of the user's characters for the given statistic.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters#getleaderboardforuserscharactersrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters#getleaderboardforuserscharactersresult
function PlayFabClientApi.GetLeaderboardForUserCharacters(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboardForUserCharacters", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client
-- completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to
-- create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken#getpaymenttokenrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken#getpaymenttokenresult
function PlayFabClientApi.GetPaymentToken(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPaymentToken", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
-- https://docs.microsoft.com/gaming/playfab/features/multiplayer/photon/quickstart for more details.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken#getphotonauthenticationtokenrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken#getphotonauthenticationtokenresult
function PlayFabClientApi.GetPhotonAuthenticationToken(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPhotonAuthenticationToken", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves all of the user's different kinds of info.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo#getplayercombinedinforequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo#getplayercombinedinforesult
function PlayFabClientApi.GetPlayerCombinedInfo(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerCombinedInfo", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the player's profile
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile#getplayerprofilerequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile#getplayerprofileresult
function PlayFabClientApi.GetPlayerProfile(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerProfile", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- List all segments that a player currently belongs to at this moment in time.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments#getplayersegmentsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments#getplayersegmentsresult
function PlayFabClientApi.GetPlayerSegments(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerSegments", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the indicated statistics (current version and values for all statistics, if none are specified), for the local
-- player.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics#getplayerstatisticsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics#getplayerstatisticsresult
function PlayFabClientApi.GetPlayerStatistics(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerStatistics", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the information on the available versions of the specified statistic.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions#getplayerstatisticversionsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions#getplayerstatisticversionsresult
function PlayFabClientApi.GetPlayerStatisticVersions(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerStatisticVersions", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Get all tags with a given Namespace (optional) from a player profile.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags#getplayertagsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags#getplayertagsresult
function PlayFabClientApi.GetPlayerTags(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerTags", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Gets all trades the player has either opened or accepted, optionally filtered by trade status.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades#getplayertradesrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades#getplayertradesresponse
function PlayFabClientApi.GetPlayerTrades(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayerTrades", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Facebook identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids#getplayfabidsfromfacebookidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids#getplayfabidsfromfacebookidsresult
function PlayFabClientApi.GetPlayFabIDsFromFacebookIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromFacebookIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Facebook Instant Game identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids#getplayfabidsfromfacebookinstantgamesidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids#getplayfabidsfromfacebookinstantgamesidsresult
function PlayFabClientApi.GetPlayFabIDsFromFacebookInstantGamesIds(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromFacebookInstantGamesIds", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Game Center identifiers (referenced in the Game Center
-- Programming Guide as the Player Identifier).
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids#getplayfabidsfromgamecenteridsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids#getplayfabidsfromgamecenteridsresult
function PlayFabClientApi.GetPlayFabIDsFromGameCenterIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromGameCenterIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the
-- service name plus the service-specific ID for the player, as specified by the title when the generic identifier was
-- added to the player account.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids#getplayfabidsfromgenericidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids#getplayfabidsfromgenericidsresult
function PlayFabClientApi.GetPlayFabIDsFromGenericIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromGenericIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for
-- the user accounts, available as "id" in the Google+ People API calls.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids#getplayfabidsfromgoogleidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids#getplayfabidsfromgoogleidsresult
function PlayFabClientApi.GetPlayFabIDsFromGoogleIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromGoogleIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
-- IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
-- http://developers.kongregate.com/docs/client/getUserId).
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids#getplayfabidsfromkongregateidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids#getplayfabidsfromkongregateidsresult
function PlayFabClientApi.GetPlayFabIDsFromKongregateIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromKongregateIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Nintendo Service Account identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoserviceaccountids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoserviceaccountids#getplayfabidsfromnintendoserviceaccountidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoserviceaccountids#getplayfabidsfromnintendoserviceaccountidsresult
function PlayFabClientApi.GetPlayFabIDsFromNintendoServiceAccountIds(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromNintendoServiceAccountIds", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Nintendo Switch Device identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids#getplayfabidsfromnintendoswitchdeviceidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids#getplayfabidsfromnintendoswitchdeviceidsresult
function PlayFabClientApi.GetPlayFabIDsFromNintendoSwitchDeviceIds(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromNintendoSwitchDeviceIds", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of PlayStation Network identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids#getplayfabidsfrompsnaccountidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids#getplayfabidsfrompsnaccountidsresult
function PlayFabClientApi.GetPlayFabIDsFromPSNAccountIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromPSNAccountIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
-- IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids#getplayfabidsfromsteamidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids#getplayfabidsfromsteamidsresult
function PlayFabClientApi.GetPlayFabIDsFromSteamIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromSteamIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
-- the user accounts, available as "_id" from the Twitch API methods (ex:
-- https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids#getplayfabidsfromtwitchidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids#getplayfabidsfromtwitchidsresult
function PlayFabClientApi.GetPlayFabIDsFromTwitchIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromTwitchIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the unique PlayFab identifiers for the given set of XboxLive identifiers.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids#getplayfabidsfromxboxliveidsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids#getplayfabidsfromxboxliveidsresult
function PlayFabClientApi.GetPlayFabIDsFromXboxLiveIDs(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPlayFabIDsFromXboxLiveIDs", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the key-value store of custom publisher settings
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata#getpublisherdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata#getpublisherdataresult
function PlayFabClientApi.GetPublisherData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPublisherData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still
-- active.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase#getpurchaserequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase#getpurchaseresult
function PlayFabClientApi.GetPurchase(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPurchase", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves data stored in a shared group object, as well as the list of members in the group. Non-members of the group
-- may use this to retrieve group data, including membership, but they will not receive data for keys marked as private.
-- Shared Groups are designed for sharing data between a very small number of players, please see our guide:
-- https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata#getsharedgroupdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata#getsharedgroupdataresult
function PlayFabClientApi.GetSharedGroupData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetSharedGroupData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the set of items defined for the specified store, including all prices defined
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems#getstoreitemsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems#getstoreitemsresult
function PlayFabClientApi.GetStoreItems(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetStoreItems", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the current server time
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime#gettimerequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime#gettimeresult
function PlayFabClientApi.GetTime(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetTime", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the key-value store of custom title settings
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata#gettitledatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata#gettitledataresult
function PlayFabClientApi.GetTitleData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetTitleData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the title news feed, as configured in the developer portal
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews#gettitlenewsrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews#gettitlenewsresult
function PlayFabClientApi.GetTitleNews(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetTitleNews", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Returns the title's base 64 encoded RSA CSP blob.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey#gettitlepublickeyrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey#gettitlepublickeyresult
function PlayFabClientApi.GetTitlePublicKey(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/GetTitlePublicKey", request, nil, nil, onSuccess, onError)
end
-- Gets the current status of an existing trade.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus#gettradestatusrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus#gettradestatusresponse
function PlayFabClientApi.GetTradeStatus(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetTradeStatus", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the title-specific custom data for the user which is readable and writable by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata#getuserdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata#getuserdataresult
function PlayFabClientApi.GetUserData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetUserData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the user's current inventory of virtual goods
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory#getuserinventoryrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory#getuserinventoryresult
function PlayFabClientApi.GetUserInventory(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetUserInventory", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the publisher-specific custom data for the user which is readable and writable by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata#getuserdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata#getuserdataresult
function PlayFabClientApi.GetUserPublisherData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetUserPublisherData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the publisher-specific custom data for the user which can only be read by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata#getuserdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata#getuserdataresult
function PlayFabClientApi.GetUserPublisherReadOnlyData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetUserPublisherReadOnlyData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Retrieves the title-specific custom data for the user which can only be read by the client
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata#getuserdatarequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata#getuserdataresult
function PlayFabClientApi.GetUserReadOnlyData(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetUserReadOnlyData", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Grants the specified character type to the user. CharacterIds are not globally unique; characterId must be evaluated
-- with the parent PlayFabId to guarantee uniqueness.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser#grantcharactertouserrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser#grantcharactertouserresult
function PlayFabClientApi.GrantCharacterToUser(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GrantCharacterToUser", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Android device identifier to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid#linkandroiddeviceidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid#linkandroiddeviceidresult
function PlayFabClientApi.LinkAndroidDeviceID(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkAndroidDeviceID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Apple account associated with the token to the user's PlayFab account.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple#linkapplerequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple#emptyresult
function PlayFabClientApi.LinkApple(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkApple", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the custom identifier, generated by the title, to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid#linkcustomidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid#linkcustomidresult
function PlayFabClientApi.LinkCustomID(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkCustomID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Facebook account associated with the provided Facebook access token to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount#linkfacebookaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount#linkfacebookaccountresult
function PlayFabClientApi.LinkFacebookAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkFacebookAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Facebook Instant Games Id to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid#linkfacebookinstantgamesidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid#linkfacebookinstantgamesidresult
function PlayFabClientApi.LinkFacebookInstantGamesId(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkFacebookInstantGamesId", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account. Logging in with
-- a Game Center ID is insecure if you do not include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters
-- in this request. It is recommended you require these parameters on all Game Center calls by going to the Apple Add-ons
-- page in the PlayFab Game Manager and enabling the 'Require secure authentication only for this app' option.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount#linkgamecenteraccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount#linkgamecenteraccountresult
function PlayFabClientApi.LinkGameCenterAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkGameCenterAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the currently signed-in user account to their Google account, using their Google account credentials
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount#linkgoogleaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount#linkgoogleaccountresult
function PlayFabClientApi.LinkGoogleAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkGoogleAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the vendor-specific iOS device identifier to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid#linkiosdeviceidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid#linkiosdeviceidresult
function PlayFabClientApi.LinkIOSDeviceID(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkIOSDeviceID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Kongregate identifier to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate#linkkongregateaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate#linkkongregateaccountresult
function PlayFabClientApi.LinkKongregate(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkKongregate", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Nintendo account associated with the token to the user's PlayFab account.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoserviceaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoserviceaccount#linknintendoserviceaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoserviceaccount#emptyresult
function PlayFabClientApi.LinkNintendoServiceAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkNintendoServiceAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the NintendoSwitchDeviceId to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid#linknintendoswitchdeviceidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid#linknintendoswitchdeviceidresult
function PlayFabClientApi.LinkNintendoSwitchDeviceId(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkNintendoSwitchDeviceId", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links an OpenID Connect account to a user's PlayFab account, based on an existing relationship between a title and an
-- Open ID Connect provider and the OpenId Connect JWT from that provider.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect#linkopenidconnectrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect#emptyresult
function PlayFabClientApi.LinkOpenIdConnect(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkOpenIdConnect", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the PlayStation Network account associated with the provided access code to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount#linkpsnaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount#linkpsnaccountresult
function PlayFabClientApi.LinkPSNAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkPSNAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Steam account associated with the provided Steam authentication ticket to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount#linksteamaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount#linksteamaccountresult
function PlayFabClientApi.LinkSteamAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkSteamAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Twitch account associated with the token to the user's PlayFab account.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch#linktwitchaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch#linktwitchaccountresult
function PlayFabClientApi.LinkTwitch(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkTwitch", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Links the Xbox Live account associated with the provided access code to the user's PlayFab account
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount#linkxboxaccountrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount#linkxboxaccountresult
function PlayFabClientApi.LinkXboxAccount(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/LinkXboxAccount", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end
-- Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for
-- API calls which require an authenticated user
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid#loginwithandroiddeviceidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid#loginresult
function PlayFabClientApi.LoginWithAndroidDeviceID(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithAndroidDeviceID", request, nil, nil, onSuccess, onError)
end
-- Signs in the user with a Sign in with Apple identity token.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple#loginwithapplerequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple#loginresult
function PlayFabClientApi.LoginWithApple(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithApple", request, nil, nil, onSuccess, onError)
end
-- Signs the user in using a custom unique identifier generated by the title, returning a session identifier that can
-- subsequently be used for API calls which require an authenticated user
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithcustomid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithcustomid#loginwithcustomidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithcustomid#loginresult
function PlayFabClientApi.LoginWithCustomID(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithCustomID", request, nil, nil, onSuccess, onError)
end
-- Signs the user into the PlayFab account, returning a session identifier that can subsequently be used for API calls
-- which require an authenticated user. Unlike most other login API calls, LoginWithEmailAddress does not permit the
-- creation of new accounts via the CreateAccountFlag. Email addresses may be used to create accounts via
-- RegisterPlayFabUser.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithemailaddress
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithemailaddress#loginwithemailaddressrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithemailaddress#loginresult
function PlayFabClientApi.LoginWithEmailAddress(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithEmailAddress", request, nil, nil, onSuccess, onError)
end
-- Signs the user in using a Facebook access token, returning a session identifier that can subsequently be used for API
-- calls which require an authenticated user
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebook
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebook#loginwithfacebookrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebook#loginresult
function PlayFabClientApi.LoginWithFacebook(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithFacebook", request, nil, nil, onSuccess, onError)
end
-- Signs the user in using a Facebook Instant Games ID, returning a session identifier that can subsequently be used for
-- API calls which require an authenticated user. Requires Facebook Instant Games to be configured.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebookinstantgamesid
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebookinstantgamesid#loginwithfacebookinstantgamesidrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebookinstantgamesid#loginresult
function PlayFabClientApi.LoginWithFacebookInstantGamesId(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess
function wrappedOnSuccess(result)
PlayFabSettings._internalSettings.sessionTicket = result.SessionTicket
PlayFabSettings._internalSettings.entityToken = result.EntityToken.EntityToken
if (externalOnSuccess) then
externalOnSuccess(result)
end
end
onSuccess = wrappedOnSuccess
IPlayFabHttps.MakePlayFabApiCall("/Client/LoginWithFacebookInstantGamesId", request, nil, nil, onSuccess, onError)
end
-- Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
-- used for API calls which require an authenticated user. Logging in with a Game Center ID is insecure if you do not
-- include the optional PublicKeyUrl, Salt, Signature, and Timestamp parameters in this request. It is recommended you
-- require these parameters on all Game Center calls by going to the Apple Add-ons page in the PlayFab Game Manager and
-- enabling the 'Require secure authentication only for this app' option.
-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgamecenter
-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgamecenter#loginwithgamecenterrequest
-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgamecenter#loginresult
function PlayFabClientApi.LoginWithGameCenter(request, onSuccess, onError)
request.TitleId = PlayFabSettings.settings.titleId
local externalOnSuccess = onSuccess