Hi, I cannot figure out how to set multiple features in one request to limelm.pkey.generate when sending data in json format
One feature works fine with the data provided like that:
{
'feature_name': ‘fname1’,
'feature_value': value1
}
Based on the docs and the example code I would expect that with two features feature_name should be an array of names and feature_value should be an array of values, but that doesn't work and produces an error that the feature values are missing.
{
'feature_name': ['fname1', 'fname2'],
'feature_value': [value1, value2]
}
What may I be doing wrong?
See Web API Overview
The data you POST must be an url-encoded string. Not JSON. Not XML. In other words it would look like this: