Put user.variables in Mailbluster create test

This commit is contained in:
Ziyi 2021-03-16 14:28:39 -07:00 committed by CactusPuppy
parent 4db10c1a8f
commit 1f3832c883
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 27 additions and 17 deletions

View file

@ -2,6 +2,10 @@
module External
module MailblusterHelper
def query_api()
end
def create_lead(user)
# TODO
begin
@ -16,14 +20,18 @@ module External
'subscribed' => true,
'tags' => ["snapcon"],
}.to_json
puts request.body.to_json
response = http.request(request)
puts response.body.to_json
# puts request.body.to_json
# puts response.body.to_json
return response.to_json
rescue => e
puts "ERROR #{e}"
return nil
end
end
def delete_lead(user)
end
end
end