From 19a7ff8eda63b9fc291af8f560a2c340e15eb16d Mon Sep 17 00:00:00 2001 From: Christopher Styles Date: Tue, 7 Jul 2015 16:45:51 -0700 Subject: [PATCH] Use https on base uri The Pipedrive API has deprecated the use of insecure http. Resolves #30 --- lib/pipedrive/base.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pipedrive/base.rb b/lib/pipedrive/base.rb index 9a0adb0..7bb2770 100644 --- a/lib/pipedrive/base.rb +++ b/lib/pipedrive/base.rb @@ -15,8 +15,8 @@ module Pipedrive class Base < OpenStruct include HTTParty - - base_uri 'api.pipedrive.com/v1' + + base_uri 'https://api.pipedrive.com/v1' headers HEADERS format :json @@ -107,7 +107,7 @@ def create( opts = {} ) bad_response(res,opts) end end - + def find(id) res = get "#{resource_path}/#{id}" res.ok? ? new(res) : bad_response(res,id)