Skip to content

Commit

Permalink
Modified SuiteCRM end point main-new file
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed May 30, 2024
1 parent f8a291c commit c3f368c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ console.log('EST Date:', estDateformat);*/
},
"data": JSON.stringify(registerFormData),
};*/

var settings = {
"url": "https://prime.dcp.infra.experimental.unblock.health/graphql",
"method": "POST",
Expand All @@ -165,7 +166,7 @@ $.ajax(settings).done(function (response) {
var settings = {
"async": true,
"crossDomain": true,
"url": "https://devl-crm.unblock.health/Api/access_token",
"url": "https://devl-crm.unblock.health/legacy/Api/access_token",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json"
Expand All @@ -181,7 +182,7 @@ $.ajax(settings).done(function (response) {
var obj = $.parseJSON(response);
var access_token = obj.access_token;
var settings = {
"url": "https://devl-crm.unblock.health/Api/V8/module",
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json",
Expand All @@ -198,7 +199,7 @@ $.ajax(settings).done(function (response) {
var settings = {
"async": true,
"crossDomain": true,
"url": "https://devl-crm.unblock.health/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships",
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json",
Expand Down Expand Up @@ -287,7 +288,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
var settings = {
"async": true,
"crossDomain": true,
"url": "https://devl-crm.unblock.health/Api/access_token",
"url": "https://devl-crm.unblock.health/legacy/Api/access_token",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json"
Expand All @@ -303,7 +304,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
var obj = $.parseJSON(response);
var access_token = obj.access_token;
var settings = {
"url": "https://devl-crm.unblock.health/Api/V8/module",
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json",
Expand All @@ -320,7 +321,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
var settings = {
"async": true,
"crossDomain": true,
"url": "https://devl-crm.unblock.health/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships",
"url": "https://devl-crm.unblock.health/legacy/Api/V8/module/Accounts/c548fc60-389f-8f5b-5ecb-64cce0924678/relationships",
"method": "POST",
"headers": {
"Accept": "application/vnd.api+json",
Expand Down

0 comments on commit c3f368c

Please sign in to comment.