Comments (3)
@antoinearrive I lookup for your question and the current search method could be used as the following example....
$criteria[] = ['field' => 1, 'searchtype' => 'contains', 'value' => 'normal'];
$criteria[] = ['link' => 'OR', 'field' => 1, 'searchtype' => 'contains', 'value' => 'tech'];
$itemHandler->searchItems('Users',[
'criteria' => $criteria,
'order' => 'DESC',
'uid_cols' => 'true',
]);
As you can see the arguments given on the api documentation should send as a array[ key => value], the criteria and multicriteria keys would have the value as an array of search filters. The keys are in lowercase and for the first argument the itemtype is not necessary
from php-library-glpi.
Hello,
The searchItem resource has not been implemented yet. It will be available for the next update or if you can develop it do a pull request to update the code.
from php-library-glpi.
@DIOHz0r Thx for your reply
from php-library-glpi.
Related Issues (20)
- Error handling HOT 5
- Code documentation HOT 6
- Wiki article per API method HOT 1
- Remove external dependencies for HTTP requests HOT 4
- Wrong package name for composer HOT 2
- Update README
- Code coverage HOT 3
- Fix code coverage styles HOT 1
- Documentation display
- Wrong menu link for documentation HOT 2
- Changelog format
- Undefined index with the session token using app token HOT 3
- Cannot connect to API server using user token
- InitSession -> requires an App-Token header for using its methods HOT 5
- Migrate project site information to glpi-project.org
- Connection with user_token and app_token fails HOT 1
- BUG: Upload a Document file using addItems() fails HOT 5
- Update to Guzzle 7
- Range in getAllItems method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-library-glpi.