Class: GoogleSheetsClient
- Inherits:
-
Object
- Object
- GoogleSheetsClient
- Defined in:
- lib/google_scribe/google_sheets_client.rb
Class Method Summary collapse
Class Method Details
.post(data, url) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/google_scribe/google_sheets_client.rb', line 7 def self.post(data, url) uri = URI.parse(url) request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json') request.set_form_data(data) https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = true # This returns a 302 code but still logs the data https.request(request) end |