Sha256: 2ef3200f0e4710eae55f82c5b9c7d0a9191593f7ac6356998fee0becf6ffccdf
Contents?: true
Size: 570 Bytes
Versions: 7
Compression:
Stored size: 570 Bytes
Contents
module SilverPop module Request def post(path, options={}) request(:post, path, options) end private # POST the XML to the SilverPop end point. # # @param body [String] The formatted XML of the API call make sure to call builder.to_xml. # @return [XML] XML Body from the API call def request(method, body, options) response = connection.send(method) do |request| request.url "/XMLAPI" request.headers['Content-type'] = "text/xml" request.body = body end response.body end end end
Version data entries
7 entries across 7 versions & 1 rubygems