demarches-normaliennes/app/lib/pipedrive/api.rb

10 lines
191 B
Ruby
Raw Normal View History

class Pipedrive::API
def self.put(url, params)
RestClient.put(url, params, { content_type: :json })
end
def self.get(url, params)
RestClient.get(url, params: params)
end
end