Adding some of the code from the tutorial to try to get the profile id from the api