epublishing / exact_target Goto Github PK
View Code? Open in Web Editor NEWA pure-ruby implementation of Exact Target api
License: Other
A pure-ruby implementation of Exact Target api
License: Other
This error occurs because the 'nokogiri' gem is required, but is not installed by default. Although the gem has been added to the Gemfile, it needs to be added as a dependency in the gem spec.
Create a brand new rails app and add the exact-target gem to the Gemfile and do a bundle install. Then go to the terminal and type in:
rails console
Add the nokogiri dependency to the gemspec file.
s.add_dependency("nokogiri", "~> 1.5.3")
Any time I use email_add I get an error saying that A CDATA section was not closed.
I tried to create the simplest possible example that reproduces the issue, and I have isolated the problem to the ampersand character (&) in the body.
It looks like this in irb after i have configured the ExactTarget class:
>> email_id = ExactTarget.email_add('Title', 'Subject', :body=>'<html><body> </body></html>') ExactTarget::Error: ExactTarget error #39: XML Parse Error = Error!!! Error Code = -1072896668, Line Number = 1, Reason = A CDATA section was not closed. , API Call:<?xml version="1.0"?><exacttarget><authorization><username>MyUsername</username> <password>MyPassword</password></authorization><system><system_name>email</system_name> <action>add</action><sub_action>HTMLPaste</sub_action><category/><email_name> Title </email_name> <email_subject> Subject </email_subject><email_body><![CDATA[<html><body> from /Library/Ruby/Gems/1.8/gems/exact-target-0.0.5/lib/exact_target.rb:111:in
parse_response_xml'
from /Library/Ruby/Gems/1.8/gems/exact-target-0.0.5/lib/exact_target.rb:67:in call' from /Library/Ruby/Gems/1.8/gems/exact-target-0.0.5/lib/exact_target.rb:90:in
email_add'
from (irb):6`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.