Hello, on https://community.playfab.com/questions/34719/call-multiplayer-api-from-cloudscript.html We can see at bottom we can use multiplayer api using multiplayer variable. I have the CloudScript.d.ts but it not contain definition for multiplayer. Anyone know if there is a complete CloudScript.d.ts OR a cloudscript api call documentation ?
Answer by Balek · Apr 08, 2021 at 08:59 PM
If I use CloudScript.d.ts it's for vscode intellisense and the problem is that "multiplayer" variable which work in cloud script is not in CloudScript.d.ts. For add it I had to go in the CloudScriptSdk/targets in the SdkGenerator and edit the make.js and the CloudScript.d.ts.ejs to add multiplayerApi. Why cloudscript contain only Entity and Server and not other supported API set like multiplayer ? And where can I get the list of supported API set in cloud script like multiplayer to add them to CloudScript.d.ts ?
Added code in red:
Thanks for sharing. Currently, the CloudScript only supports Server, Entity and Multiplayer API and there is no document about it. We will try to feedback the documentation issue to our team.
Ok maybe you can add multiplayer to the SdkGenerator then anyone can use it without documentation waiting you write it :)
Answer by Sarah Zhang · Apr 08, 2021 at 06:39 AM
The CloudScript.d.ts was created using our SdkGenerator by the third party. You can feel free to update the .ts file using SDK Generator on your own. For the tutorial of SDK Generator, please refer to this documentation -- SDK Generator quickstart - PlayFab | Microsoft Docs.
Besides, you can find the API references of Multiplayer here -- PlayFab Multiplayer REST API | Microsoft Docs.
Complete Cloud Code developer document 2 Answers
APIs available from CloudScript 1 Answer
Update Statistic: invocation of cloud script function failed 1 Answer
Logging In and Authenticating users, to later call for things like IAP and Leaderboards 1 Answer
Get purchases made by user on CloudScript server API. 1 Answer