Added token api invocations into sample apps