react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

how to use patch method in server request

Open NadeemKhanFh opened this issue 1 year ago • 2 comments

Hello

url: "http://my.server.com", params: { "user_id": 123 }, headers: { "my-auth-token":"secret-key" }

i have a rest api to update rider location

const updateRiderInfo = ({body}: {body: any}) => { return new Promise((resolve, reject) => { NetWorkService.Patch({ url: riders/updateByRider, body: body, }) .then((res) => resolve(res)) .catch((error) => reject(error)); }); };

is there any so that i can set Patch method and body:{lat:0, long:0} in the config?

NadeemKhanFh avatar Sep 08 '24 21:09 NadeemKhanFh

See the api docs Config to see all the options available to you beginning with the word “http”.

christocracy avatar Sep 08 '24 22:09 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 09 '24 02:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 23 '24 02:10 github-actions[bot]