Got the api call working