I had tried the same what you had said me, that to but params in the body. But the same error I got i.e "message": "Missing or invalid field `api_key`. Min length is 6.".
PFA for the same
Can you give some example for api hitting via rest client. For e.g :- 1. url :- https://api.kite.trade/session/token 2. body(in json) :- {"api_key":"xxx","request_token":"xxx":"checksum":"xxx"} 3. Header :- i. X-Kite-Version : 3
please tell me the fastest medium to commuincate with you, as I put problem on today you reply me on tomorrow, I team member won't be able to wait for such a long time dear. I said "It's a form request, not JSON request.". I had ask for some e.g with screenshot, which JSON request. Please guide on urgent basis dear.
Thank you dear, I had resolve my issue, by put the application/x-www-form-urlencoded instead of application/json. In previous version i.e 2.0 I used to pass those urlencoded parameter in query string & it works, that is also mention in -d. Why the query string not working in V 3.0?
The new Kite Trade is more robust everything is strictly defined now. Now all the requests are authenticated using authorization header. All POST requests are form requests and expect users to send params in the body. Only GET and DELETE will have params in the URL.
I had tried the same what you had said me, that to but params in the body.
But the same error I got i.e "message": "Missing or invalid field `api_key`. Min length is 6.".
PFA for the same
Can you give some example for api hitting via rest client.
For e.g :-
1. url :- https://api.kite.trade/session/token
2. body(in json) :- {"api_key":"xxx","request_token":"xxx":"checksum":"xxx"}
3. Header :-
i. X-Kite-Version : 3
Passing -d on curl means content-type should be set as application/x-www-form-urlencoded. But you are still setting content-type as application/json. Check if ARC supports importing curl request as it is.
Now all the requests are authenticated using authorization header. All POST requests are form requests and expect users to send params in the body.
Only GET and DELETE will have params in the URL.