Guest User

Post

a guest
Jun 2nd, 2021
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. jQuery.ajax({
  2. "method": "post",
  3. "url": "/api/SCHA_ASC_PS_IndividualDemo",
  4. "headers": { "RequestVerificationToken": jQuery("#__RequestVerificationToken").val()},
  5. "dataType": "json",
  6. "contentType": "application/json",
  7. "data": JSON.stringify({
  8. "$type": "Asi.Soa.Core.DataContracts.GenericEntityData, Asi.Contracts",
  9. "Properties": {
  10. "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
  11. "$values": [
  12. {
  13. "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
  14. "Name": "ID",
  15. "Value": user
  16. },
  17. {
  18. "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
  19. "Name": "IndRegion",
  20. "Value": region
  21. }
  22. ]
  23.  
  24. }
  25. }),
  26.  
  27. success: function(data) {
  28. console.log(data);
  29. },
  30. error: function() {
  31. console.error("runRequests Error", "user", arguments);
  32. },
  33. complete: function() {
  34. runRequests(++userIndex);
  35. }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment