Added sample api.

Signed-off-by: Paolo Ibarra <jpibarra1130@gmail.com>