Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2364

Re: core_users_get_user_by_field parameter issue

$
0
0
by Mike Eaton.  

Hi Rezka,

I've started working with these API calls myself and came across the same issue as you.  in your userToGet variable, the 'values' value needs to be an array.  So for your example, the line 

var userToGet = { field: 'username', values: 'mobile' };

should be

var userToGet = { field: 'username', values: ['mobile'] };

With the idea being that if you wanted to look up more than one username, you'd have them as elements of the values array. 

Hope that helps!

Mike


Viewing all articles
Browse latest Browse all 2364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>