api limelm.pkey.advancedSearch usage

Hi!

I use the api call limelm.pkey.advancedSearch to get all product keys.

Is it possible to get the value of a custom license field returned with this call?

If so, how?

/Ronny

Hey Ronny,

A good place to look for any web API questions is the documentation. Here's the one for limelm.pkey.advancedSearch.

Is it possible to get the value of a custom license field returned with this call?

Yes, you can either search by custom fields (see: feature_name[], feature_value[], feature_match[]), and/or you can set the advancedSearch function to return the licens fields with the product keys. See: get_features

Thanks!

Yes, I have seen that, and have tried to use that documentation.

I do something like this to call the function:

$post_data = array('method' => 'limelm.pkey.advancedSearch', 'num' => '500', 'get_features' => 'true');

How do I extract, say a license field called name form the result?

/Ronny

I use $pkeys .= $pkey['email']; to get the email field from the xml.

But $pkeys .= $pkey['name']; won't work (name being the custom field)

/Ronny

Look at the data being returned from LimeLM. Just use print_r() so you can see how it's formed. Depending on how you get the data from LimeLM (JSON or REST) and depending on the parser you use for the returned data, it might look something like this to get the "name" value:

$pkey['features']['name']

But again, it's not magic, just look at the data returned from LimeLM.

Great, thanks for the help