Getbytoken and consumes (version to b cleaned).