Aware IM User Forums Forum Index Aware IM User Forums
Discussions, questions, ideas, opinions about Aware IM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Advice on POST

 
Post new topic   Reply to topic    Aware IM User Forums Forum Index -> General discussion and questions about Aware IM
View previous topic :: View next topic  
Author Message
RLJB



Joined: 05 Jan 2010
Posts: 366
Location: Sydney, Australia

PostPosted: Wed May 30, 2012 1:00 pm    Post subject: Advice on POST Reply with quote

Trying to integrate Zoho docs with our Aware app using the ZoHo API, can anyone suggest a neat way of doing this in Aware (code example from Zoho api):

Need to POST a multi-part form request to the specific Zoho service url (Writer, Sheet, Show) with the file content and required parameters:

Code:

<form method="POST" action="https://exportwriter.zoho.com/remotedoc.im?output=editor" enctype="multipart/form-data"
target="_self" accept-charset="UTF-8">
File : <input type="file" name="content" size="38"> <br>
<input type="hidden" name="apikey" value="[zoho_api_key]">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="documentid" value="1877099822">
<input type="hidden" name="format" value="doc">
<input type="hidden" name="filename" value="mydocument.doc">
<input type="hidden" name="id" value="aaa">
<input type="submit" name="submit" value="Edit">
</form>


Tks
_________________
Rod. Aware 5.5 (build 1602), Developer Edition, on Linux (ubuntu 10.04) using GUI, MYSQL
Back to top
View user's profile Send private message
aware_support



Joined: 24 Apr 2005
Posts: 4668

PostPosted: Wed May 30, 2012 11:22 pm    Post subject: Reply with quote

One obvious option would be to implement this as a custom form (see details in the Programmers Reference Guide).

Another option is to implement this as custom HTML embedded somewhere in a visual perspective as a content panel.
_________________
Aware IM Support Team
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RLJB



Joined: 05 Jan 2010
Posts: 366
Location: Sydney, Australia

PostPosted: Thu May 31, 2012 6:50 am    Post subject: Reply with quote

Thanks Support.

When thinking about this I don't really need a "form" as such since I know all the variables, so i can get Aware to insert them as "hidden" variables in the form, so now I am wondering if it is possible to use the the BO intellegence in Aware as a service to do a POST method request to the URL? Is that possible?

I guess the PayPal example in the Library sample is like a GET method - can it be used for POST method?
_________________
Rod. Aware 5.5 (build 1602), Developer Edition, on Linux (ubuntu 10.04) using GUI, MYSQL
Back to top
View user's profile Send private message
aware_support



Joined: 24 Apr 2005
Posts: 4668

PostPosted: Thu May 31, 2012 11:04 pm    Post subject: Reply with quote

Yes. More specifically you need a URL channel. PayPal interaction is an example of using the URL channel.
_________________
Aware IM Support Team
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aware IM User Forums Forum Index -> General discussion and questions about Aware IM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group