2016-09-01 12:09:44 +02:00
|
|
|
if Rails.env.production?
|
2018-03-15 14:20:55 +01:00
|
|
|
API_ENTREPRISE_URL = 'https://entreprise.api.gouv.fr/v2'
|
2016-09-01 12:09:44 +02:00
|
|
|
else
|
2018-03-15 14:20:55 +01:00
|
|
|
API_ENTREPRISE_URL = 'https://staging.entreprise.api.gouv.fr/v2'
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|
2018-03-23 17:21:51 +01:00
|
|
|
|
|
|
|
PIPEDRIVE_API_URL = 'https://api.pipedrive.com/v1/'
|
|
|
|
PIPEDRIVE_PEOPLE_URL = URI.join(PIPEDRIVE_API_URL, 'persons').to_s
|
2018-03-23 17:25:58 +01:00
|
|
|
PIPEDRIVE_DEALS_URL = URI.join(PIPEDRIVE_API_URL, 'deals').to_s
|