Added ApiExample.m
Corrected Api Example for entity refresh bug