I have curl request to push data to the server from Android.Below is the Curl request:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -H "Authorization: Token token=SNKh9UP4RX2Ltyxo9JnG , username=local1admin" -X PATCH -d '{"fcm": {"token":"sd7sdf6sdffd5"}}' http://myapp-back.herokuapp.com/fcms/1
How should I do post request using volley? I am confused because I have no idea where to put this:
'{"fcm": {"token":"sd7sdf6sdffd5"}}'
So please anyone help me to get it done. Any answers are appreciable. Thank you. Peace out!