Skip to content

Instantly share code, notes, and snippets.

@mohamedhamdy2017
Created February 27, 2019 13:55
Show Gist options
  • Save mohamedhamdy2017/f3e6731bef30213e3dde5ea445f4c003 to your computer and use it in GitHub Desktop.
Save mohamedhamdy2017/f3e6731bef30213e3dde5ea445f4c003 to your computer and use it in GitHub Desktop.
const Parameters = {UID: '26.2716025' & '50.2017993'}
export const task_register = async (lat,lon) => {
let url = `https://wainnakel.com/api/v1/GenerateFS.php?uid=${lat},${lon}&get_param=value`
const res = await fetch(url, {
method: "POST",
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
uid: `${Parameters.UID.Longitude}${Parameters.UID.Latitude}`
})
})
return res.json();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment