Purple API sample application