|
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 "getSingleSignOnToken" |
|
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. |
|
login_password |
Required. Specifies the password of the account to authenticate. |
|
cons_id |
Required*. The internal constituent ID of the user. |
|
member_id |
Required*. The external member ID of the user. |
*Either cons_id or member_id must be specified order to locate the record of the user to log in.
- 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, a token for it is returned.
- If multiple records match member_id, then this is an error and no token is returned.
Response
Success
A successful invocation sends either a URL redirect (if the redirect parameter was specified) or an identifier for the new record is returned. 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. For example:
XML format:
<getSingleSignOnTokenResponse
xmlns="http://convio.com/crm/v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://convio.com/crm/v1.0
http://service.convio.net/xmlschema/crm.public.v1.xsd">
<token>5F8p37tMzmB9qfjoXd9i2nkb_INrxXfa8wL
7rbpSQkm5gwEgRQV5F6YmJwfKbIIgbHbeqaJcGNLWGdJqrxegrw..</token>
<cons_id>1001641</cons_id>
</getSingleSignOnTokenResponse>
JSON format:
{"getSingleSignOnTokenResponse":
{"cons_id":"1001641",
"token":"5F8p37tMzmB9qfjoXd9i2nkb_INrxXfa8wL7rbpSQkm5gw
EgRQV5F6YmJwfKbIIgbHbeqaJcGNLWGdJqrxegrw.."
}
}
Error
If there is an error, this returns either a URL redirection request (if the redirect parameter was specified) or the error code and message. The HTTP status code is 403. For example:
XML format:<errorResponse
xmlns="http://convio.com/crm/v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://convio.com/crm/v1.0
http://service.convio.net/xmlschema/crm.public.v1.xsd">
<code>14</code>
<message>The specified record does not exist.</message>
</errorResponse>
JSON format:
{"errorResponse":{"code":"14","message":
"The specified record does not exist."}}
See the complete list of HTTP Status codes and Error codes for calling from another application.


