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