I did receive help from Zoho.
In order to call Zoho CRM function using the OAuth method, we'd need to get an access token and pass it in the header of the request.
Here are steps of what I've done
2.Call to get a refresh token:
getRefreshToken = invokeurl [ url :"https://accounts.zoho.eu/oauth/v2/token?grant_type=authorization_code&client_id=xxx&client_secret=xxx&redirect_uri=https%3A%2F%2Fcrm.zoho.eu%2F&code=xxx" type :POST ]; ref_Tok = getRefreshToken.getJSON("refresh_token");
The client ID, Secret and Code you get from the developer's console client.
This is a GET request (very important!)
The access token that we get from the previous call we pass as a header in this structure:
Authorization: Zoho-oauthtoken access_key (There is space between authtoken and the access key).
Requested_by can be passed as parameter, I did it as it's a parameter that I need to pass when calling the function.
Something else that is important to note, I was advised by Zoho that when making a call to get the Access token, that has to be done from outside Zoho for some reason, otherwise the access token doesn't work...