Guest User

Untitled

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. fetch(URL, {
  2. method: 'POST',
  3. Headers: {
  4. 'Accept': 'application/json',
  5. 'Authorization': 'Basic',
  6. Authorization:{
  7. 'Username':'test',
  8. 'Password':'test',
  9. },
  10. 'Content-Type': 'application/x-www-form-urlencoded'
  11. },
  12. body: JSON.stringify({
  13. })
  14. })
  15. .then((response) => response.json())
  16. .then((responsenew) =>
  17. {
  18. });
Add Comment
Please, Sign In to add comment