Hi,
i am trying to make a simple remote api call , through an url,
https://www.XXX.com/route1/call/jsonrpc2
using POST with a JSON payload ,
{ "jsonrpc": "2.0", "method": "api", "params":[
{
"opts" : {
"login" : "xxx",
"password" : "xxx",
"db" : "dbname1",
"host": "host-ip",
"port": "4321",
"protocol": "https"
},
"moduleDetail" : {
"model" : "login",
"method" : "login",
"args" : {},
"filter" : "",
"fields" : "",
"domain" : "",
"offset" : "",
"limit" : "",
"sort" : "",
"resource_id":""
}
} ], "id": 1}
what i did was ,
- create a service , select ->remote service->HTTP Service
- at the page config , i am stuck and do not know what to do
can any one provide some advice for how to proceed ?
In the first place , i am not sure whether i am going in the right direction or
i need to setup using Script->Javascript/PHP/Python for custom service ?
Thanks.