Cryptlex Forums

Custom Fields PostData Example

M
M Traxinger

Could someone post an example of what the post data should look like when trying to pass multiple custom fields to the pkey/generate web-api service? I tried to determine this from the CryptlexWebApi.cs file, but I am getting PHP errors when I try to replicate the expected format.

C
Cryptlex Support

HI,

Can you share you code snippet wherein you are making the call to generate the product key

M
M Traxinger

It’s actually in what I’ll term a limited .NET language. So I can’t create a variable for string[] and pass that as an object to the Dictionary options parameter. That’s why I’m looking for what the post data is actually supposed to look like rather than sharing the code. It wouldn’t make sense to most people.

C
Cryptlex Support

Here is a sample post data string

version_id=11021&total_keys=1&email=john.doe%40example.com&cust_field_id[]=300&cust_field_id[]=301&cust_field_value[]=John&cust_field_value[]=Doe

M
M Traxinger

Thanks, I’ve got this one resolved.

← Back to all topics · 5 posts · 878 views · opened 2016-09-29