class FadssLite::Api
Public Class Methods
new(key)
click to toggle source
# File lib/fadss_lite/api.rb, line 6 def initialize(key) @connection = Excon.new( 'https://api.fadss.jp', headers: { 'X-Fadss-Key' => key, 'Content-Type' => 'application/json' } ) end
Public Instance Methods
post_data(records)
click to toggle source
# File lib/fadss_lite/api.rb, line 17 def post_data(records) @connection.post(path: '/v1/original_data.json', body: { records: records }.to_json).body end