Comments (8)
You are correct. The java library currently limits substitution data to a single string. I recently started thinking through how to expose the more complex substitution schemes that SparkPost supports.
I would welcome a Pull Requests that addresses this if you are up for it. Otherwise I am going to work on this in the near future.
from java-sparkpost.
Ok thanks I'll have a look one of these days if we decide to use sparkpost and it's still an issue
from java-sparkpost.
Hi,
this means i wont be able to do something like this?
"substitution_data": { "subject" : "Inconsistencias", "processingdate": "2016-03-22 14:27:02", "inconsistencylist": [ { "guide": "234997175", "lastchangeupdatestatedate": "2016-02-23 19:00:59", "filename": "P_20160322", "amount": 116800 }, { "guide": "234997177", "lastchangeupdatestatedate": "2016-02-23 19:01:00", "filename": "P_20160322", "amount": 116800 } ] }
from java-sparkpost.
Yes, that is correct. I am working on a new release that will enable your ability to do that as well as inline css.
from java-sparkpost.
Hi @yepher i have to ask this, do you have an estimated date of release? :)
from java-sparkpost.
I @carmudgeon I'm trying to have it ready by end of day tomorrow.
from java-sparkpost.
Awesome!!
from java-sparkpost.
This is now available in the Maven repo.
from java-sparkpost.
Related Issues (20)
- Log4j critical vulnerability!! HOT 4
- SuppressionList update endpoints throw com.google.gson.JsonSyntaxException
- RestConnection does not honor Client base URL
- Upgrade to Log4J 2.17.1
- Webhook events no longer derive from AbstractWebhookEvent, making getting type more difficult
- Webhook fields initial_pixel and open_tracking are presented as int, rather than boolean in event classes, making deserialization harder
- GSON error when calling insertOrUpdate or insertOrUpdateBulk
- Add 'template_id' key in X-MSYS-API Custom Header
- SparkPost/Java
- Add ability to GZIP post data HOT 1
- Switch to using SLF4J HOT 2
- Webhook active property missing from model HOT 2
- Webhook properties are out of date HOT 1
- attach pdf HOT 2
- Webhook resource is missing /validate endpoint
- SparkPost Java API Suppression list limitations HOT 1
- event webhook - handle ping events
- Message Event API ending point changed - please update HOT 1
- TransimisionBase should allow other types than String for Metadata value HOT 2
- Subaccount CRUDs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-sparkpost.