lib/hubspot/form.rb in hubspot-ruby-0.8.1 vs lib/hubspot/form.rb in hubspot-ruby-0.9.0
- old
+ new
@@ -26,9 +26,14 @@
# {https://developers.hubspot.com/docs/methods/forms/get_form}
def find(guid)
response = Hubspot::Connection.get_json(FORM_PATH, { form_guid: guid })
new(response)
end
+
+ def upload_file(uri)
+ path = URI::parse(uri).request_uri
+ Hubspot::FilesConnection.get(path, {})
+ end
end
attr_reader :guid
attr_reader :fields
attr_reader :properties