34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
Graydon UK Web Services
|
|
This document explains the PHP scripts used to communicate with the Web Service functions.
|
|
|
|
Run Requests:
|
|
1) Install PHP onto the computer.
|
|
2) Add the php root directory to the system PATH.
|
|
3) From the command line run the php scripts passing the correct command line options.
|
|
|
|
Examples:
|
|
1) php checkorders.php <username> <password> Delivered 0 " " 2008-10-02
|
|
2) php getCompanyMatchesByKeyword.php <username> <password> "United Kingdom" Company " " " "
|
|
3) php companyproducts.php <username> <password> "UNITED KINGDOM:National1:GR064240"
|
|
|
|
Php version:
|
|
5.2.8
|
|
|
|
Web Service:
|
|
requests - checkorders: Returns a list of orders that match the search criteria.
|
|
- companyproducts: Returns a list of products for a company that match the company match identifier.
|
|
- getCompanyMatchesByKeyword: Returns a list of Companies that match the search criteria.
|
|
|
|
Command Line Arguments:
|
|
All the scripts use command line arguments, the two constant arguments for all scripts is the
|
|
username and password. Both the username and password are used by the web service to authenticate
|
|
the request.
|
|
argument 1 = Username
|
|
argument 2 = Password
|
|
argument 3 = Function parameters
|
|
. = Function parameters
|
|
. = Function parameters
|
|
. = Function parameters
|
|
argument x = Function parameters
|
|
|