Post request
Hello! Yes, please share the project
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello! Yes, please share the project
on a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a?
Yes
It calls CarePass Body Measurements
Thank's. We'll take a look
Hello,
When HTTP request is via Tiggzi Proxy then header parameter "Accept" isn't sent to remote server.
If there is no Accept parameter in POST request then api.carepass.com server returns error 405.
We will solve this problem and fix Tiggzi Proxy.
Thank you in advance.
Hi,
The bug is fixed
Hi, I have this POST request to Tiggzi Database, everything works except one line, I believe:
precode
$('#controlBarBtn2').on("click", function(){
var dataInput = $(".formPart").serialize();
alert(dataInput);
addQuestion(dataInput);
});
Code: Select all
function addQuestion(dataInput) {
var tokenValue = localStorage.getItem("sessionToken");
var serverUrl = 'https://api.tiggzi.com/rest/1/db/collections/questions';
var xhr
$.ajax({
url: serverUrl,
beforeSend: function(xhr) {
xhr.setRequestHeader("X-Tiggzi-Database-Id", "50e56928e4b0195a923ab3ac");
xhr.setRequestHeader("X-Tiggzi-Session-Token", tokenValue);
xhr.setRequestHeader("Content-Type", "application/json");
},
type: "POST",
data: dataInput,
success: function(data) {
alert ("success!!");
},
error: function(data) {
alert ("failure!!");
}
});
}
/code/pre
I sent POST request to Tiggzi Database, have had everything work except one. It said:
code
500 server error
{"code":"DBSQ002","description":"database id not specified"}
/code
But it was apparently impossible for I had the headers work in virtually the same situation. My code:
Any idea what went wrong?