Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

I am having trouble with the Enjin Api. I can successfully call the Api, I want with http://rednexclan.com/api/get-users. And I get a list of all the users on my site, working yes. But I want to use the parameter (tag_id) to only list user's with a certain tag. I have tried the call with both (456814) and using (RedNeX General). But when I use this request parameter I still receive all the users on my site not just the ones with this tag. Here is the api documentation page http://www.enjin.com/apidocumentation. The first two screen shots just show the response of the url extension: get-tags so I can show you the response fields that I am using for request parameter (tag_id) in the url extension (get-users). The last screenshots show my results from the url that I want to pull my data from. I am getting a successful response, but should only be receiving 4 users when i use that request parameter right? Image Imageinline.png?1386133352[/img] [/url] Image Imageinline.png?1386133381[/img] [/url] Image Imageinline.png?1386133408[/img] [/url]

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

Update: the publishers of the api sent me an email and told me there was a typo in there documentation and (tag_id) should be (tag) but it still yields unwanted results.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

API Request Parameter's

Try running the request directly from the browser address bar, with key and tag parameters included.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

Update: I figured out my problem now, thanks for the help Max. On this particular call I needed my service method as (post).

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

One last thing, when mapping my array. I get a single seperate array for each character. The array response's returned are different for each tag_id I input to the service. The single arrays are not under a larger column or array, but I want to post each array without having to update the mapping ever time a character is added to a group. So how do I map all of the arrays listed, is there away to add a column for these arrays, or what is the best way. Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

API Request Parameter's

If I understand the question correctly, you can edit the response parameters of a service by hand.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

But would that work? The api changes the response fields when you add a new member? Wouldn't they have to add a level on the actual server because we could only add known sub levels, to our created level? The way I need it mapped is to map it without actually mapping to accommodate for a list change so if a member was removed from a group there array in the response field wouldn't show but also when a member was added their array would be shown instead of actually launching the builder to map their array to a label, it would be populated when the service was invoked.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

Does that make sense, im not sure if im describing this properly.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

API Request Parameter's

Hello! Looks like it's not possible to map result you get. The workaround is to use generic service where you can process response you recieve (before mapping) and create array you'll be able to map.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

API Request Parameter's

How do I do that what is a generic service?

Return to “Issues”