how to use the http and sample to call that