Adding url shortener api example. It does throw exception on analytics and history.
Minor log updates