api_entreprise: use API v3 again

This reverts commit 10e1408a88.
This commit is contained in:
Pierre de La Morinerie 2019-04-04 17:14:32 +02:00
parent b92f55fcfb
commit e90b1cdcc0

View file

@ -40,7 +40,9 @@ class ApiEntreprise::API
end
def self.url(resource_name, siret_or_siren)
[API_ENTREPRISE_URL, resource_name, siret_or_siren].join("/")
base_url = [API_ENTREPRISE_URL, resource_name, siret_or_siren].join("/")
"#{base_url}?with_insee_v3=true"
end
def self.params(siret_or_siren, procedure_id)