Ask API Entreprise for insee v3

This commit is contained in:
gregoirenovel 2018-12-07 10:29:42 +01:00
parent 31250b4642
commit 3b0562949c

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)