Added support for non logged in calls to api