Nap API sample application