|
Name |
Description |
| api_key | Required. An arbitrary value that must be passed when invoking the Convio Client and Server APIs. The value passed by the caller must match the value in the CONVIO_API_KEY site configuration parameter, which is unique for each Convio site. |
| v | Required. API version to invoke. Must be "1.0". |
|
method |
Required. Specifies which method to perform. To invoke this method use the value “getUser”. |
|
response_format |
Optional. Specifies the format in which to return the response. Can be either "xml" (the default value) or "json". |
| redirect | Optional. Specifies a URL to which to redirect after processing. |
|
fields |
Optional. Specifies a comma-separated list of names of fields to retrieve. If not specified, then all fields in use and visible to the caller are returned. Use "dot" notation to refer to nested elements of the XML schema. For example, use "name.first" to request the "first" element of the "name" element (the user's first name). |
Response
Success
The HTTP status code is 200. The response is formatted as XML by default, but the response_format input parameter can be used to specify either XML or JSON formatting. A successful invocation might appear as follows:
XML format:<getConsResponse
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"><cons_id>1001172</cons_id>
<name>
<title xsi:nil="true"/>
<first>Zaphod</first>
<last>Beeblebrox</last>
</name>
<email>
<primary_address>zaphod@convio.com</primary_address>
</email></getConsResponse>
JSON format:
{"getConsResponse":{"cons_id":"1001172",
"email":{"primary_address":zaphod@convio.com},
"name":{"last":"Beeblebrox","title":null,"first":"Zaphod"}}}
Notes:
- If a field is not included in the response, it is either not enabled for the site or it is invisible to the caller.
- If the field is included but has no value (xsi:nil="true" in an XML response or null in a JSON response), then the field is visible and has a null value for the retrieved record.
- If a composite element (one that can contain nested elements), such as "name" or "email" in the example above, is nil then all of its contained fields are either disabled or have nil values for this record.
Error
If an error occurs during processing, the structure of the response is an "errorResponse" element. It contains two other elements: a "code" element and a "message" element. The "code" element contains a number corresponding to the error conditions documented on the error list page. The "message" element contains a text message that may provide further detail about the error. For example:
XML format:<errorResponse
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"><code>16</code>
<message>The specified user does not exist.</message></errorResponse>
JSON format:
{"errorResponse":{"code":"16",
"message":"The specified user does not exist."}}
See the complete list of HTTP Status codes and Error codes for calling from another application.


