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