init from https://github.com/nafSadh/EdmundsAPI-sdk-js2php-port