Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-2010, 05:17 AM
Special Member
 
Posts: 166
Default [SOLVED] Importing contacts with REST Api

Hi,

the described procedure ZCS 6.0:Zimbra REST API Reference:Import Contacts - Zimbra :: Wiki does not work for me.

When I try:
Quote:
curl -USER:PASS--upload-file /var/share/result.csv https://SERVER/home/USER/FOLDER?fmt=csv
I get:
Warning: Invalid character is found in given range. A specified range MUST
Warning: have only digits in 'start'-'stop'. The server's response to this
Warning: request is uncertain.

When I try the -u command (as documented in curl --help), I get no warnings, no display of anything and nothing imported.

Quote:
curl -u USER:PASS--upload-file /var/share/result.csv https://SERVER/home/USER/FOLDER?fmt=csv
USER, PASS, SERVER and FOLDER are of course my settings.

When I do I get an "empty" csv file (because no contacts have been imported yet).

regards,
Bernhard
Reply With Quote
  #2 (permalink)  
Old 02-23-2010, 05:24 AM
Special Member
 
Posts: 166
Default

solved it myself. It was a problem with the csv file: the columns have to be labled "email", "firstName", "lastName".

But the -u option should be updated in the wiki I think.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.