Pipedrive: extract methods in service

This commit is contained in:
simon lehericey 2018-03-23 17:21:51 +01:00
parent b7d31aac96
commit ec3d558af0
3 changed files with 43 additions and 37 deletions

View file

@ -3,3 +3,6 @@ if Rails.env.production?
else
API_ENTREPRISE_URL = 'https://staging.entreprise.api.gouv.fr/v2'
end
PIPEDRIVE_API_URL = 'https://api.pipedrive.com/v1/'
PIPEDRIVE_PEOPLE_URL = URI.join(PIPEDRIVE_API_URL, 'persons').to_s