Project

General

Profile

Xcap icon » History » Revision 2

Revision 1 (Adrian Georgescu, 11/28/2009 11:59 AM) → Revision 2/3 (Adrian Georgescu, 01/24/2010 03:41 PM)

== xcap-icon xcap_icon == 

 [[TOC(SipTesting*, sip_*, xcap*,depth=2)]] 

 > This script is available in ''sipclients'' package that must be installed separately from SIP SIMPLe client SDK package. 

 === Description === 

 {{{ 
 adigeo@ag-blink:~$xcap-icon adigeo@ag-blink:~$xcap_icon -h 
 Usage: xcap-icon xcap_icon [options] GET|PUT 

 This example script will use the specified SIP account to download or upload 
 the specified icon file via XCAP. 

 Options: 
   -h, --help              show this help message and exit 
   -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME 
                         The name of the account to use. 
   -i INPUT_FILENAME       The name of the file in case we are doing a PUT. 
   -d, --download          Download the icon. 
   -f OUTPUT_FILENAME, --filename=OUTPUT_FILENAME 
                         Name for storing the downloaded icon. 
 }}} 

 === Example === 

 {{{ 
 adigeo@ag-blink:~$xcap-icon adigeo@ag-blink:~$xcap_icon -i /Users/adigeo/Library/Application\ Support/Blink/photos/CIMG4463-small.png PUT 
 Icon uploaded successfully 
 201 Created <http://node03.dns-hosting.info:8443/xcap-root/icon/users/sip:adi@umts.ro/LpBkQq61tmnKfG7zYRX3.png> 
 content-length: 0 
 server: OpenXCAP/1.1.3 
 connection: close 
 etag: "928a046a31c514486078d69937949fbb" 
 date: Sat, 28 Nov 2009 10:59:42 GMT 
 content-type: application/icon 
 }}}