Xcapclient

Version 1 (Adrian Georgescu, 10/26/2008 01:55 pm)

1 1 Adrian Georgescu
== xcapclient ==
2 1 Adrian Georgescu
3 1 Adrian Georgescu
To use this script you must to have a valid [wiki:configuration_file configuration file].
4 1 Adrian Georgescu
5 1 Adrian Georgescu
6 1 Adrian Georgescu
=== Description ===
7 1 Adrian Georgescu
8 1 Adrian Georgescu
9 1 Adrian Georgescu
{{{
10 1 Adrian Georgescu
adigeo@ag-imac3:~$xcapclient -h
11 1 Adrian Georgescu
12 1 Adrian Georgescu
  xcapclient: Client for managing full or partial XML documents on XCAP servers (RFC 4825)
13 1 Adrian Georgescu
  xcapclient [OPTIONS] --app AUID ACTION [NODE-SELECTOR]
14 1 Adrian Georgescu
15 1 Adrian Georgescu
  ACTION is an operation to perform: get, replace, insert, put or delete.
16 1 Adrian Georgescu
  Presence of NODE-SELECTOR indicates that action is to be performed on an
17 1 Adrian Georgescu
  element or an attribute.
18 1 Adrian Georgescu
19 1 Adrian Georgescu
Options:
20 1 Adrian Georgescu
  -h, --help             show this help message and exit
21 1 Adrian Georgescu
  -a NAME, --account-name=NAME
22 1 Adrian Georgescu
                         the account name from which to read account settings.
23 1 Adrian Georgescu
                         Corresponds to section Account_NAME in the
24 1 Adrian Georgescu
                         configuration file. If not supplied, the section
25 1 Adrian Georgescu
                         [Account] will be read.
26 1 Adrian Georgescu
  --show-config          show options from the configuration file; use
27 1 Adrian Georgescu
                         together with --account-name
28 1 Adrian Georgescu
  --xcap-root=XCAP_ROOT  XCAP root, e.g. https://xcap.example.com/xcap-root
29 1 Adrian Georgescu
  --sip-address=SIP_ADDRESS
30 1 Adrian Georgescu
                         SIP address of the user in the form username@domain
31 1 Adrian Georgescu
  -p PASSWORD, --password=PASSWORD
32 1 Adrian Georgescu
                         password to use if authentication is required. If not
33 1 Adrian Georgescu
                         supplied will be asked interactively
34 1 Adrian Georgescu
  --app=AUID             Application Unique ID. There's no default value;
35 1 Adrian Georgescu
                         however, it may be guessed from NODE-SELECTOR or from
36 1 Adrian Georgescu
                         the input file. Known apps: watchers, pidf-
37 1 Adrian Georgescu
                         manipulation, rls-services, resource-lists, xcap-
38 1 Adrian Georgescu
                         caps, pres-rules, test-app
39 1 Adrian Georgescu
  --filename=FILENAME    
40 1 Adrian Georgescu
  -c CONTEXT, --context=CONTEXT
41 1 Adrian Georgescu
                         document context, users or global; default is users
42 1 Adrian Georgescu
                         for everything except xcap-caps
43 1 Adrian Georgescu
  --etag=ETAG            perform a conditional operation
44 1 Adrian Georgescu
  -i INPUT_FILENAME      source file for the PUT request; default is <stdin>
45 1 Adrian Georgescu
  -o OUTPUT_FILENAME     output file for the body of the server response
46 1 Adrian Georgescu
                         (successful or not); default is <stdout>
47 1 Adrian Georgescu
  -d, --dump             print HTTP traffic to stderr
48 1 Adrian Georgescu
}}}