Results 1 to 2 of 2

Thread: [SOLVED] Importing contacts with REST Api

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Location
    Vienna, Austria
    Posts
    174
    Rep Power
    6

    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:
    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.

    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

  2. #2
    Join Date
    Nov 2008
    Location
    Vienna, Austria
    Posts
    174
    Rep Power
    6

    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.

Similar Threads

  1. Replies: 3
    Last Post: 04-28-2010, 09:46 AM
  2. Importing Contacts regularly
    By FredThu in forum Administrators
    Replies: 2
    Last Post: 04-15-2009, 02:20 PM
  3. Importing Cardscan contacts through Outlook
    By mtense in forum Administrators
    Replies: 0
    Last Post: 03-04-2008, 06:20 PM
  4. Howto update contacts using REST interface?
    By tigger in forum Administrators
    Replies: 0
    Last Post: 05-23-2007, 03:26 AM
  5. Replies: 2
    Last Post: 07-20-2006, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •