getAddressBookImportContacts

Gets the contacts from an address book import job

Client Servlet Server Servlet HTTP Methods Supported Requires Authentication
CRAddressBookAPI None. GET, POST Yes.

Client API Syntax

https://secure2.convio.net/organization/site/CRAddressBookAPI?method=getAddressBookImportContacts &api_key=value &v=value [ &auth=value ] [ &center_id=value ] [ &error_redirect=value ] [ &redirect=value ] [ &response_format=xml | json ] [ &sign_redirects=value ] [ &source=value ] [ &sub_source=value ] [ &success_redirect=value ] [ &suppress_response_codes=value ] &import_job_id=value [ &auth=value ] [ &sso_auth_token=value ]

Usage Notes

This method returns a list of contact data imported from an online address book such as Gmail or Yahoo. Prerequisite to calling this method, you must obtain a job ID from startOnlineAddressBookImport and addressBookImportOAuthCallback, and the getAddressBookImportJobStatus method must reflect that the import job has completed successfully.

After retrieving contacts from the hosting provider with this method, call importAddressBookContacts to add the returned contacts to the constituent's address book. For usage details refer to the Usage Notes for startOnlineAddressBookImport

Client API Parameters

Common Client Parameters

See topic Common Parameters.

import_job_id

Required. ID of an address book import job.

Type xsd:integer.

auth

Optional. You must provide either this parameter or the sso_auth_token parameter. If using this parameter, you must specify an auth token generated by an embedded [[S86]] session tag in a Convio web page.

sso_auth_token

Optional. You must provide either this parameter or the auth parameter. If using this parameter, you must specify a valid session authentication token returned by login, authenticateUser, or getSingleSignOnToken.

Response

See topic HTTP Status Codes.

XML response
<?xml version="1.0" encoding="UTF-8"?>
<getAddressBookImportContactsResponse xsi:schemaLocation="http://convio.com/crm/v1.0 http://service.convio.net/xmlschema/crm.public.v1.xsd" xmlns="http://convio.com/crm/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <contact>
    <firstName>Adam</firstName>
    <lastName>Adams</lastName>
    <email>aadams@address.net</email>
  </contact>
  <contact>
    <firstName>Brian</firstName>
    <lastName>Brians</lastName>
    <email>bbrians@address.net</email>
  </contact>
  <contact>
    <firstName>Charlie</firstName>
    <lastName>Charles</lastName>
    <email>ccharles@address.net</email>
  </contact>
</getAddressBookImportContactsResponse>

        
JSON response
{"getAddressBookImportContactsResponse":{"contact":[{"lastName":"Adams","email":"aadams@address.net","firstName":"Adam"},{"lastName":"Brians","email":"bbrians@address.net","firstName":"Brian"},{"lastName":"Charles","email":"ccharles@address.net","firstName":"Charlie"}]}}

        

Leave a Comment

Nickname
Comment
Enter this word: