Closed Vaibhav1587 closed 6 years ago
Hi
There are two problems here:-
(a) it does not look like your input args are arranged correctly for this function
(b) you'll need to uncomment the line entry for function easyrule_block_alias_getid
in the file /etc/fauxapi/pfsense_function_calls.txt
I've tested the following Python example, that does indeed work once the respective entry in the file /etc/fauxapi/pfsense_function_calls.txt
was enabled
print(json.dumps(
FauxapiLib.function_call({
'function': 'easyrule_block_alias_getid',
'args': ['wan']
}
)))
I'm trying to access the function_call API by making the HTTP request using JAVA code as follows,
phpFn = 'easyrule_block_alias_getid' and fnParams='wan'
same code works for the
API.