Appendix B

TouchDevelop Services

This appendix reproduces material found on the TouchDevelop website at https://www.touchdevelop.com/docs/api. It is provided here to make the book more self-contained. Appendix B covers the objects (known as resources or services) provided by the API. The datatypes are covered in Appendix C.

B.1    bazaar

Browse and review scripts from the bazaar.

ast of(id: String): Json Object Returns Abstract Syntax Tree JSON object for specified script
leaderboard score: Number Gets the current score for the current script
post leaderboard score(score: Number) Posts the current game score to the script leaderboard
post leaderboard to wall Posts the current game leaderboard to the wall
script id(which: ...

Get TouchDevelop: Programming on the Go, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.