dolibarr 21.0.0-alpha
server_other.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 getVersions ($authentication)
 Full methods code.
 
 getDocument ($authentication, $modulepart, $file, $refname='')
 Method to get a document by webservice.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_other.php.

Function Documentation

◆ getDocument()

getDocument ( $authentication,
$modulepart,
$file,
$refname = '' )

Method to get a document by webservice.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array with authentication information
string$modulepartProperties of document
string$fileRelative path
string$refnameRef of object to check permission for external users (autodetect if not provided)
Returns
array{result:array{result_code:string,result_label:string},document?:array{filename:string,mimetype:string,content:string,length:int}} Array of data

Definition at line 214 of file server_other.php.

References check_authentication(), dol_check_secure_access_document(), dol_mimetype(), and dol_syslog().

◆ getVersions()

getVersions ( $authentication)

Full methods code.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array with authentication information
Returns
array{result:array{result_code:string,result_label:string},dolibarr?:string,os?:string,php?:string,webserver?:string} Array of data

Definition at line 169 of file server_other.php.

References check_authentication(), dol_syslog(), version_dolibarr(), version_os(), version_php(), and version_webserver().