Page 1 of 1

API Request Parameter to update based on input

Posted: Wed Jul 30, 2014 9:24 am
by Moe

While using an API is there a way to replace just one part of the Request Parameter with the input from a search bar? I have a page which lists all of my customers, on the top I added a search bar, in order to search the API i need to filter it. Here is the URL Parameter:
Parameter is called: "filters" and the value
[{"field":"keyword_search","operator":"is","value":"Need_to_Replace_Just_This"}] my goal is that when someone searches for a name, the part where it says "Need to Replace Just This" should be replaced with the search results... I hope this is clear, if not I'll try and clarify further.
Thanks in advance


API Request Parameter to update based on input

Posted: Wed Jul 30, 2014 11:08 am
by Evgene Karachevtsev

API Request Parameter to update based on input

Posted: Wed Jul 30, 2014 5:46 pm
by Moe

Thanks Evgene, I'm trying to look through it just can't figure out how to replace just one part with what was typed in the search box.

I simply want to that if the user searches for "Michael" it will change this from:
[{"field":"keyword_search","operator":"is","value":""}] to:
[{"field":"keyword_search","operator":"is","value":"Michael"}]

Can you guide me on how to do this? the links you sent shows how to add several fields, not adding one field into a specific place in a predefined string.

Thanks again


API Request Parameter to update based on input

Posted: Thu Jul 31, 2014 12:49 am
by Yurii Orishchuk

Hi Moe,

Do you use internal Appery.io REST API?

Please show us your service settings, request and response tabs screen shots.

Regards.