Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gendoc download doc via api
#1
Hi,

Here is an example direct link to download a specific Gendoc generated odt file:

Code:
http://mycrm.com/index.php?module=evvtgendoc&action=evvtgendocAjax&file=gendocAction&gdaction=export&gdformat=doc&gdtemplate=9137&gdmodule=Contacts&gdcrmid=9112

I would like to get an odt file like this from remove application.

What is the best why to do it?

php curl this url is blocked because of authentication and security check.

I'm willing to allow index.php to bypass all security check to this specific call, is it complicated to implement?

Thank you
Reply
#2
I would implement a web service call for this, probably extending the existing one:

https://github.com/tsolucio/corebos/blob/master/include/Webservices/GetPDFData.php#L85

that is the safest approach

you could try adding a script that loads that URL internally in modules/Utilities and add the name to the 'nologinaction' array: https://github.com/tsolucio/corebos/blob/master/index.php#L81
Joe
TSolucio
Reply
#3
Quote:I would implement a web service call for this, probably extending the existing one:

https://github.com/tsolucio/corebos/blob/master/include/Webservices/GetPDFData.php#L85
that is the safest approach

Thank you, i'm really waiting for this.


Quote:you could try adding a script that loads that URL internally in modules/Utilities and add the name to the 'nologinaction' array: https://github.com/tsolucio/corebos/blob/master/index.php#L81

I'm not sure I understand you proposal.
I will be able to call this new new script bypassing login checks. But what are the function of this script. It can't user php curl becasue this call will be block. The URL module is evvtgendoc and not  module Utilities.
Reply
#4
for the second approach, you have to create a script in utilities that loads the script that you are calling with the URL, that should work without login
Joe
TSolucio
Reply
#5
we have implemented and released the GenDoc generation from a Web service and also the GetPDFData
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)