bmuller / gatling_gun Goto Github PK
View Code? Open in Web Editor NEWA Ruby library wrapping SendGrid's Newsletter API.
License: MIT License
A Ruby library wrapping SendGrid's Newsletter API.
License: MIT License
SendGrid seems to return both HTTP 200 and an error as data in that case:
#<GatlingGun::Response:0x7fe6e94d68e0
@data = {
"error" => "List does not exist"
},
@success = true,
attr_reader :http_response_code = "200"
>
Do we want success to be set to false in that case?
If you wonder, I started looking at this because I thought about adding bang equivalents to each method (like delete_list! would raise an exception unless we have a success).
def get_newsletter(newsletter)
make_api_call("edit", name: newsletter)
end
should be
def get_newsletter(newsletter)
make_api_call("get", name: newsletter)
end
Howdy,
Running into a problem with my first attempt to do anything. The backtrace is somewhat opaque -- any ideas?
https://gist.github.com/1277443
Thanks!
-Shawn
ps -- ideally, lib/gatling_gun/api_call.rb wouldn't rescue all errors, just the ones that it needed to.
Hi,
I am using the newsletter API want to include a unsbscribe link at the end of my email. FOr doing that you can enable and set up the "Subscription Tracking" app to look for a particular tag in the newsletter text for eg: [UNSUBSCRIBE] and then this tag will be replaced with the unsubscribe link. It works when I create a newsletter from sendgrid.com UI but does not seem to work when I add the tag using the newsletter api.
For eg:
SendGrid.add_newsletter( newsletter_name,
identity: IDENTITY,
subject: newsletter.title,
html: "
Thanks,
HItesh
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.