Events API scripts

Adding Events API-specific examples in Bash and Ruby.