Removed tokenName parameter
Added accept json header for github compatibility