Replacing app_id by argument for get_access_token function