Xcap icon

Version 1 (Adrian Georgescu, 11/28/2009 11:59 am)

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