Forum Academy Marketplace Showcase Pricing Features

Pass list to API parameter in certain format

I’m struggling to work out how to pass a list as a parameter to an API call.

The list is as follows: apple, banana, orange

I need to pass this as an API parameter in the form “apple"OR"banana"OR"orange”

Any suggestions would be much appreciated!

FYI for anyone else.

Fixed it!

noob of me:

list:formatted as JSON-safe join with OR