Hi everyone!
So I've recently come around to appreciating how useful it is to be able to invoke functions as a rest api.
I use a separate service where I run a Python script that invokes a Zoho function as an API. For those familiar with Python, I basically just use the requests library to make a post request, and pass the parameters as a dictionary, like so:
requests.post(zoho_api_url, params = dictionary_of_params)
In my zoho standalone function, I then build the params accordingly, creating them with the right corresponding variable names.
For the most part, this all works perfect, except for the very first and very last parameter.
E.g, the last parameter is "ApiVersion": "2010-04-01". However, Zoho's function doesn't seem to parse this parameter properly, because it gets saved as 2010-04-01", with the extra quote at the end.
I think this is because it's not reading the received input as a dictionary as it should be. Is there any way to make it so that the received input goes through a .toJSON() step through the deluge function? Or is some other issue causing the problems above.
To clarify, all the other variables received in the params dictionary are alright, it's just the first and last variables that have an extra quote character (i.e. a ") within them.
Thanks in advance :)