Error When Using Data Insertion API
Greetings!
I'm currently trying to utilize the Data Insertion API on my company site (using Ruby on Rails), but am getting an error when trying to post. I believe I am using the correct format/variables.
Below is the XML request:
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<request>\n <reportSuiteID>pluralsight-codeschool-dev</reportSuiteID>\n <visitorID>146</visitorID>\n <pageName>Testing Successful Payment</pageName>\n <category>Individual</category>\n <events>purchase</events>\n <products>;Individual;1;55</products>\n <purchaseID>137</purchaseID>\n</request>\n"
I'm using Faraday to send a post request to: "http://sc.omtrdc.net.112.2o7.
And the response:
<Faraday::Response:0x007fb4684d6ec0 @env= #<struct Faraday::Env method=:post, body="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<status>FAILURE</status>\n<reason>NO account</reason>\n", #removed some info here status=200>, @on_complete_callbacks=[]>
Any thoughts on what could be wrong? The <reason>NO account</reason> implies that my report suite ID is missing, but it should be correct and was copied directly from my Omniture account.