vidal project info2
corporate corner :---FemmeConnect.js line no 229 token for localhost
for run please comment.
note open in mobile view only...
note:
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build"
aska cornerlogin:
//to run ask a corner in localhost xCSRFToken has to comment and while building the app u need to uncomment it
api call:
const filterQuery = async (a,b) =>{
console.log(date,a,b)
try {
let response = await fetch('https://wellex.vidalhealth.com:7744/api/hospital-app/ask_corner/get_queries_all/', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
withCredentials: true,
'X-CSRFToken' : CookieConstants.get_cookie()
},
body: JSON.stringify({"query_type":"free_query", "query_status": a, "clinical_speciality":b, "start_date":date.length?convert(date[0]):"", "end_date":date.length?convert(date[1]):""})
});
let json = await response.json();
console.log(json)
setAllQuery(json.get_queries_data)
} catch (error) {
console.error(error);
}
};
agent app:
while building :--
line no 132
'Authorization': 'Basic ' + btoa(`${'VidalTestAgent'}:${'AgentTest$312'}`),
//replace the world Test with Test:Pro//nagababu contact if any issue comes
where ever the api call has been done replace all...
to run expo start --web
credentials:-
Username - AJITH12345
Password - Vidal@12345
Comments
Post a Comment