Tinker Cloud API & Source Code

Where is the Tinker Cloud API documented? … I can see the functions but how are you supposed to know the arguments for the functions? (I googled around and found examples e.g. D7,HIGH

Where do I find the source code for Tinker? I found a an thread on this community with a 404 link on GitHub.

Thanks,
Alan

If you scroll down the projects list in Web IDE you’ll find this
https://build.particle.io/examples/56214d636666d9ece3000006
http://docs.particle.io/photon/tinker/#annotated-tinker-firmware