|
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 “getUserInterests”. |
|
response_format |
Optional. Specifies the format in which to return the response. Can be either "xml" (the default value) or "json". |
|
login_name |
Required. Specifies the user name of the account to authenticate. If either login_name or login_password is not specified, then authentication is done solely by looking for a session cookie. |
|
login_password |
Required. Specifies the password of the account to authenticate. |
If the requester is not an administrator, then the requester's own record is retrieved regardless of what cons_id is specified.
If the requester is an administrator, then one of cons_id, member_id, or primary_email must be specified in order to locate the record to retrieve.- If cons_id is given, then it is the only thing used to search.
-
If cons_id is absent and member_id is given, then it is the only thing used to search.
- If one record matches member_id, it is retrieved.
- If multiple records match member_id, then this is an error and no record is retrieved.
- If no records match member_id, then primary_email is searched. If exactly one match is found, then that record is retrieved.
- If cons_id and member_id are absent, then primary_email is searched and a record is updated if exactly one match is found.
If the requester is not an administrator, then the requester's own record is updated regardless of what cons_id is specified.
Response
Success
The HTTP status code of 200 indicates a successful invocation. The response is formatted as XML by default, but the response_format input parameter can be used to specify either XML or JSON formatting. For example:
XML format:<getConsInterestsResponse
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"><interest>
<id>1002</id>
<label>Operation Overthruster Technology</label>
<path>Science > Operation Overthruster Technology</path>
<for_email>true</for_email>
<for_web>false</for_web>
</interest>
<interest>
<id>1001</id>
<label>Science</label>
<path>Science</path>
<for_email>true</for_email>
<for_web>false</for_web></interest>
</getConsInterestsResponse>
JSON format:
{"getConsInterestsResponse":{"interest":[{"for_email":"true",
"for_web":"false","label":"Oscillation Overthruster Technology",
"path":"Science > Oscillation Overthruster Technology",
"id":"1002"}, {"for_email":"true","for_web":"false", "label":
"Science","path":"Science","id":"1001"}]}}
Elements of the “Interests” include:
- label: the text label for the interest.
- path: the concatenation of the names of all ancestors of the interest and the name of the interest, each separated by the ">" character.
- for_email: indicates whether this interest is used for managing email subscriptions.
- for_web: indicates whether this interest is used for organizing web content.
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 record does not exist.</message></errorResponse>
JSON format:
{"errorResponse":{"code":"16",
"message":"The specified record does not exist."}}
See the complete list of HTTP Status codes and Error codes for calling from another application.


