Xcap icon

Version 3 (Adrian Georgescu, 01/24/2010 03:41 pm)

1 1 Adrian Georgescu
2 3 Adrian Georgescu
h2. xcap-icon
3 1 Adrian Georgescu
4 1 Adrian Georgescu
5 1 Adrian Georgescu
6 3 Adrian Georgescu
7 3 Adrian Georgescu
> This script is available in _sipclients_ package that must be installed separately from SIP SIMPLe client SDK package.
8 3 Adrian Georgescu
9 3 Adrian Georgescu
10 3 Adrian Georgescu
h3. Description
11 3 Adrian Georgescu
12 3 Adrian Georgescu
13 3 Adrian Georgescu
<pre>
14 2 Adrian Georgescu
adigeo@ag-blink:~$xcap-icon -h
15 2 Adrian Georgescu
Usage: xcap-icon [options] GET|PUT
16 1 Adrian Georgescu
17 1 Adrian Georgescu
This example script will use the specified SIP account to download or upload
18 1 Adrian Georgescu
the specified icon file via XCAP.
19 1 Adrian Georgescu
20 1 Adrian Georgescu
Options:
21 1 Adrian Georgescu
  -h, --help            show this help message and exit
22 1 Adrian Georgescu
  -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME
23 1 Adrian Georgescu
                        The name of the account to use.
24 1 Adrian Georgescu
  -i INPUT_FILENAME     The name of the file in case we are doing a PUT.
25 1 Adrian Georgescu
  -d, --download        Download the icon.
26 1 Adrian Georgescu
  -f OUTPUT_FILENAME, --filename=OUTPUT_FILENAME
27 1 Adrian Georgescu
                        Name for storing the downloaded icon.
28 3 Adrian Georgescu
</pre>
29 1 Adrian Georgescu
30 1 Adrian Georgescu
31 3 Adrian Georgescu
h3. Example
32 3 Adrian Georgescu
33 3 Adrian Georgescu
34 3 Adrian Georgescu
<pre>
35 1 Adrian Georgescu
adigeo@ag-blink:~$xcap-icon -i /Users/adigeo/Library/Application\ Support/Blink/photos/CIMG4463-small.png PUT
36 1 Adrian Georgescu
Icon uploaded successfully
37 1 Adrian Georgescu
201 Created <http://node03.dns-hosting.info:8443/xcap-root/icon/users/sip:adi@umts.ro/LpBkQq61tmnKfG7zYRX3.png>
38 1 Adrian Georgescu
content-length: 0
39 1 Adrian Georgescu
server: OpenXCAP/1.1.3
40 1 Adrian Georgescu
connection: close
41 1 Adrian Georgescu
etag: "928a046a31c514486078d69937949fbb"
42 1 Adrian Georgescu
date: Sat, 28 Nov 2009 10:59:42 GMT
43 1 Adrian Georgescu
content-type: application/icon
44 3 Adrian Georgescu
</pre>