class FcEnrich::HttpClient
Public Instance Methods
post(path, payload_hash)
click to toggle source
# File lib/fc_enrich/http_client.rb, line 6 def post(path, payload_hash) response = RestClient.post("https://api.fullcontact.com#{path}", MultiJson.encode(payload_hash), authorization: "Bearer #{FcEnrich.api_key}") MultiJson.decode(response.body) rescue RestClient::NotFound nil end