| View previous topic :: View next topic |
| Author |
Message |
RLJB
Joined: 05 Jan 2010 Posts: 366 Location: Sydney, Australia
|
Posted: Wed May 30, 2012 1:00 pm Post subject: Advice on POST |
|
|
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 |
|
 |
aware_support
Joined: 24 Apr 2005 Posts: 4668
|
Posted: Wed May 30, 2012 11:22 pm Post subject: |
|
|
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 |
|
 |
RLJB
Joined: 05 Jan 2010 Posts: 366 Location: Sydney, Australia
|
Posted: Thu May 31, 2012 6:50 am Post subject: |
|
|
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 |
|
 |
aware_support
Joined: 24 Apr 2005 Posts: 4668
|
Posted: Thu May 31, 2012 11:04 pm Post subject: |
|
|
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 |
|
 |
|