Fixed incorrect variable name in api sample code