Skip to content
lauren12292 edited this page Mar 30, 2016 · 24 revisions

Critical Changes

These are modifications since the previous release that require changes in your calls to the binding.

1.0.0

  • Enable cURL in php. This can be achieved by using the command sudo apt-get install php5-curl or by uncommenting the line extension=php_curl.dll in php.ini.
  • Functions and classes removed: The /matched-name and /translated-name endpoints have been renamed to /name-similarity and /name-translation in the Rosette API, so the PHP binding reflects those changes by adding the new functions nameSimilarity and nameTranslation and new corresponding Parameters classes. Functions matchedName and translatedName and their corresponding Parameters classes are no longer supported.
  • All responses now include the response headers in the returned JSON -- make sure to access or filter the desired JSON response object in your code. Related to Rosette API's new headers mentioned here.

Internal Changes

These changes should not require modifications to your bindings calls, but represent major internal changes, often correlating to Rosette API functional changes indicated here.

1.0.0

  • The unit, contentType, and contentBytes input parameters have been removed. Base64-encoded input should be sent as an input file.
  • The X-RosetteAPI-Request-Id and X-RosetteAPI-ProcessedLanguage values have been added as response headers.
  • The 'retrying requests' mechanism has been removed and the function name has been changed to makeRequest().
  • GET and POST requests are now composed and made using cURL instead of with file_get_contents().

Clone this wiki locally