Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

HttpWebRequest Post?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

HttpWebRequest Post?

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.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

HttpWebRequest Post?

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

HttpWebRequest Post?

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.

Joseph Yeung
Posts: 0
Joined: Tue Aug 14, 2012 7:48 am

HttpWebRequest Post?

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

HttpWebRequest Post?

Thank you for sharing this :)

Stephen Goveia
Posts: 0
Joined: Fri May 10, 2013 3:35 pm

HttpWebRequest Post?

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.

Pedro Tornich
Posts: 0
Joined: Thu Jul 04, 2013 4:10 am

HttpWebRequest Post?

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

HttpWebRequest Post?

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

Return to “Issues”