Available methods for Nakupovanje (merk)
Application: merk
Prefix: shop
Name: Nakupovanje
Example:
// inside ObalaNET 1
$result = $registry->call("shop/METHOD_NAME", array(PARAMETERS));
// inside ObalaNET 2
$result = $registry->callByPackage("merk", "METHOD_NAME", array(PARAMETERS));
// XML RPC (http://pear.php.net/package/XML_RPC)
require_once "XML/RPC.php";
$msg = new XML_RPC_Message("shop.METHOD_NAME", PARAMETERS);
$cli = new XML_RPC_Client("/rpc.php", "http://HOSTNAME");
$resp = $cli->send($msg);
$val = $resp->value();
$result = XML_RPC_decode($val);
// XML RPC 2 (http://pear.php.net/package/XML_RPC2)
require_once "XML/RPC2/Client.php";
$client = XML_RPC2_Client::create("http://HOSTNAME/rpc.php", array("prefix" => "shop"));
$result = $client->METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...);
// Python Example (http://wiki.horde.org/XmlRpcPythonHowTo)
import xmlrpclib
url = "http://HOSTNAME/rpc.php"
server = xmlrpclib.ServerProxy(url, verbose=0)
result = server.shop.METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...)
More detailed examples: http://www.drugapisarna.si/wicked/ZunanjaUporaba
perms - Merk Permissons...
Call: (mixed) perms()
Description :
Merk Permissons
listCostObjects - List items in stock...
Call: (mixed) listCostObjects( [ (mixed) criteria ] )
Description :
List items in stock
Parameters:
| Type |
Name |
Documentation |
| mixed |
criteria |
listCostCategories - List items categorie...
Call: (mixed) listCostCategories()
Description :
List items categories
listCostOptions - Return available cos...
Call: (mixed) listCostOptions()
Description :
Return available cost options
listCostStock - Return available sto...
Call: (mixed) listCostStock( [ (mixed) ids, (boolean) items ] )
Description :
Return available stocks quantity
Parameters:
| Type |
Name |
Documentation |
| mixed |
ids |
o check |
| boolean |
items |
suppliying item ids or stock its? |
authorizationResponse - Do authorization res...
Call: (mixed) authorizationResponse((string) invoice_id, (string) params)
Description :
Do authorization response.
Parameters:
| Type |
Name |
Documentation |
| string |
invoice_id |
Invoice identification number |
| string |
params |
Additional parameters |
getName - Do authorization res...
Call: (mixed) getName((integer) invoice_id)
Description :
Do authorization response. Sends email on authorization status change.
Parameters:
| Type |
Name |
Documentation |
| integer |
invoice_id |
Invoice identification number |
getSellingForm - Returns an selling f...
Call: (string) getSellingForm((integer) id)
Description :
Returns an selling form for the selected item
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
item ID |
changeLanguage - Performs tasks neces...
Call: (mixed) changeLanguage()
Description :
Performs tasks necessary when the language is changed during the session.