Page 2 of 3

HttpWebRequest Post?

Posted: Sun Dec 09, 2012 7:07 am
by Joe Bohen

Hi Max, I am a .Net developer I prefer to work with vb. If you have any examples or information in the methods used to achieve this in either vb or c# it would help.


HttpWebRequest Post?

Posted: Sun Dec 09, 2012 10:53 am
by maxkatz

We don't have any VB examples...it's somewhat outside the scope of our support (the examples). We support and make it easy to use the database from an app built in Tiggzi builder.


HttpWebRequest Post?

Posted: Sun Dec 09, 2012 11:57 am
by Joe Bohen

Hi Max I appreciate that your role is to support apps built in Tiggzi. Are you saying that it is not possible to work with the database from external sources or that HTTPWebRequest properly formatted should work?


HttpWebRequest Post?

Posted: Mon Dec 10, 2012 3:25 am
by maxkatz

You can access the Tiggzi database from any external source by sending a valid REST request. It can be done in any programming language. We simply don't have any examples as it outside the context of support.


HttpWebRequest Post?

Posted: Mon Mar 11, 2013 7:25 pm
by Joseph Yeung

I had the same issue, but have just got it solved. See this:
https://getsatisfaction.com/tiggzi/to...


HttpWebRequest Post?

Posted: Mon Mar 11, 2013 7:31 pm
by Kateryna Grynko

Thank you for sharing this :)


HttpWebRequest Post?

Posted: Thu Jul 04, 2013 2:25 am
by Stephen Goveia

The link above is broken. Could you fix it. I have a similar issue except I am trying to issue a PUT from a native Android app.


HttpWebRequest Post?

Posted: Thu Jul 04, 2013 3:36 am
by Alena Prykhodko

HttpWebRequest Post?

Posted: Thu Jul 04, 2013 4:10 am
by Pedro Tornich

Hi,
I got the same issue, using .net too, but in my case it's asp.net with silverlight.
I can consume the appery.io services using ajax on something like this:

function login(databaseId, userName, password) {

Code: Select all

 var sessionToken; 

 jqXHR =  $.ajax({ 
     type: "GET", 
     beforeSend: function (request) { 
         request.setRequestHeader("X-Appery-Database-Id", databaseId); 
     }, 
     url: "[url=https://api.appery.io/rest/1/db/login]https://api.appery.io/rest/1/db/login[/url]", 
     data: { username: userName, password: password }, 
     async: false 
 }); 

 jqXHR.done(function (response) { 
     sessionToken = response.sessionToken; 
 }); 

 jqXHR.fail(function () { 
     alert("Usuário ou senha incorretos."); 
 }); 

 return sessionToken; 

}

And then I call the JS function inside .Net with this:

string sessionToken = (string)HtmlPage.Window.Invoke("login", credentials.DatabaseId, credentials.UserName, credentials.Password);

But it would be really nice if someone could get a sample code written in .Net.


HttpWebRequest Post?

Posted: Thu Jul 04, 2013 5:43 am
by Maryna Brodina

Hi Pedro! Sorry, but it's outside the scope of our support.