Page 2 of 4

Post request

Posted: Fri Mar 01, 2013 9:03 am
by Maryna Brodina

Hello! Yes, please share the project


Post request

Posted: Fri Mar 01, 2013 9:04 am
by Ricki Ricardo

on a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a?


Post request

Posted: Fri Mar 01, 2013 9:07 am
by Maryna Brodina

Yes


Post request

Posted: Fri Mar 01, 2013 9:10 am
by Ricki Ricardo

It calls CarePass Body Measurements


Post request

Posted: Fri Mar 01, 2013 9:13 am
by Maryna Brodina

Thank's. We'll take a look


Post request

Posted: Fri Mar 01, 2013 9:54 pm
by Kateryna Grynko

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.


Post request

Posted: Sun Mar 03, 2013 10:44 pm
by Ricki Ricardo

Thank you in advance.


Post request

Posted: Wed Mar 06, 2013 1:37 pm
by Kateryna Grynko

Hi,
The bug is fixed :)


Post request

Posted: Sat Mar 09, 2013 1:01 pm
by Joseph Yeung

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


Post request

Posted: Sat Mar 09, 2013 1:10 pm
by Joseph Yeung

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:

Image

Any idea what went wrong?