Skip to content

Commit

Permalink
Merge pull request #15 from tomchinery/master
Browse files Browse the repository at this point in the history
Add: ID to Persons request url's
  • Loading branch information
Jrsnow8921 committed Aug 9, 2016
2 parents 0c2ee33 + e209b97 commit b58e981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PipedrivePUT/persons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def self.addPerson(name, options = {})

#Delete a person from Pipedrive
def self.deletePerson(id)
url = "https://api.pipedrive.com/v1/persons/id?api_token=#{@@key}"
url = "https://api.pipedrive.com/v1/persons/#{id}?api_token=#{@@key}"
HTTParty.delete(url)
end


#Update a Person
def self.updatePerson(id, options = {})
url = "https://api.pipedrive.com/v1/persons/id?api_token=#{@@key}"
url = "https://api.pipedrive.com/v1/persons/#{id}?api_token=#{@@key}"

HTTParty.put(
url,
Expand Down

0 comments on commit b58e981

Please sign in to comment.