added httparty for api call