trying to get API to work with setting httparty credentials