some code to use the api

yo add this its awesome!