Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Balek · Apr 08, 2021 at 01:55 AM · CloudScriptapisdocumentation

CloudScript don't have api call documentation & uncomplete CloudScript.d.ts ?

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 ?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

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:


report-1-make.png (145.0 kB)
report-2-ejs.png (209.9 kB)
Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sarah Zhang · Apr 09, 2021 at 10:11 AM 0
Share

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.

avatar image Balek Sarah Zhang · Apr 10, 2021 at 11:15 AM 0
Share

Ok maybe you can add multiplayer to the SdkGenerator then anyone can use it without documentation waiting you write it :)

avatar image

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.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges