I've seen some examples of REST calls that pass a variable out to a service via URL, and others that recieve JSON from a fixed URL. I'm looking to do a phone lookup, with the flow being
When the phone rings :
- Grab the number (I have this)
- Package the number into a REST call on the URL
- Recieve the JSON blob the call returns
- Do something with that JSON data
It seems like this should be fairly easy, but I haven't seen any code that lets me put variables in the request, and process the return data.