The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 4.00

  • Major internal restructuration
  • The module version number is no longer depending on the INSEE's API version number
  • The module is now using POO
  • This module will now send requests using POST method when possible. This is allowed by the INSEE's API since version 3.6.0 in order to avoid too long requests in the URL.
  • The API returns HTTP_NOT_FOUND code when no results have been found, even if the request was correct. The module now handles this case correctly and returns the json body instead of dumping the request.
  • In general way, the module now correctly handles the different HTTP response codes given by the API
  • Better handling of tokens renewal
  • Added searchLegalUnitBySIREN method
  • Added searchEstablishmentBySIRET method
  • Added getCustomCriteria method
  • Added searchByCustomCriteria method
  • Added setMaxResults method
  • Added setDebugMode method
  • Added setProxy method
  • Added setTimeout method
  • Added setCredentials method
  • Added MIN_DIGIT constant
  • Removed CLIENT_AUTH constant
  • Removed getEstablishmentsByCriteria function
  • Removed getLegalUnitsByCriteria function
  • Removed getUserAgentInitialized function
  • Updated documentation

Modules

An interface for the Sirene API of INSEE