Added sample api scripts to docs.