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