Created
February 27, 2019 13:55
-
-
Save mohamedhamdy2017/f3e6731bef30213e3dde5ea445f4c003 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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