gendoc download doc via api - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forum-17.html) +--- Forum: Modules/Extension Support (https://discussions.corebos.org/forum-9.html) +--- Thread: gendoc download doc via api (/thread-1587.html) |
gendoc download doc via api - addady2 - 09-16-2019 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 RE: gendoc download doc via api - joebordes - 09-16-2019 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 RE: gendoc download doc via api - addady2 - 09-17-2019 Quote:I would implement a web service call for this, probably extending the existing one: 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. RE: gendoc download doc via api - joebordes - 09-18-2019 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 RE: gendoc download doc via api - joebordes - 12-28-2019 we have implemented and released the GenDoc generation from a Web service and also the GetPDFData |