Permalink
Browse files

Added some more API functions to the library

  • Loading branch information...
1 parent 5c1c2a4 commit 66c1438b31c8ad0143621871212114e0fc57e899 @ozataman committed Nov 18, 2008
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/mail_gorilla.rb
View
@@ -44,6 +44,13 @@ def get_templates
@templates = @chimpApi.call("campaignTemplates", @api_key)
end
+ def get_merge_vars(list_id)
+ @merge_vars = @chimpApi.call("listMergeVars", @api_key, list_id)
+ end
+
+ def add_merge_var(list_id, tag, name, req = false)
+ @merge_var = @chimpApi.call("listMergeVarAdd", @api_key, list_id, tag, name, req)
+ end
def batch_subscribe(list_id, info_array)
# => info_array is an array of hashes that must contain {:EMAIL=>"",:EMAIL_TYPE=>""}

0 comments on commit 66c1438

Please sign in to comment.