_getFuelCards
(API version 2.0)WDS_FuelCardItem[] _getFuelCards ( string kodf , string username , string pass )
Description
The function returns a list of fuel cards.
For roles:
[admin, miniadmin, superadmin] - returns all company cards
[user] - returns logged user cards which are assigned to the driver
- returns the cards assigned to the vehicle which the user has driven or is driving
[other roles] - no returns
Categories
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
Return value
WDS_FuelCardItem[]
-
WDS_FuelCardItem
-
int
id
Identifier
-
string
card_number
Card Number
-
string
pin
PIN
-
string
type
Type
-
int
assign
Vehicle ... 1 / driver ... 2
-
int
assign_id
Vehicle / driver identifier
-
int
is_inactive
Status (inactive ... 1 / active ... 0)
-
string
expiration_date
Expiration date
-
string
note
Note
-
int
id
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_getFuelCards($kodf, $username, $pass);
Test
To test the function, enter parameters in form below and press Try it out button.