Skip to content

Commit

Permalink
Use https on base uri
Browse files Browse the repository at this point in the history
The Pipedrive API has deprecated the use of insecure http.

Resolves GeneralScripting#30
  • Loading branch information
christopherstyles committed Jul 7, 2015
1 parent e640075 commit 19a7ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pipedrive/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 19a7ff8

Please sign in to comment.