GET api/Subscriptions/{id}?emailAddress={emailAddress}
Gets a list of subscriptions for the specified contact.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the user in CRM (Guid) |
globally unique identifier |
Required |
| emailAddress |
The user's email address. Must match the account associated with the Guid. |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
A single UWEOSubscription object. The "subscriptions" property of the object contains the list of all current subcriptions.
UWEOSubscription| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId | globally unique identifier |
None. |
|
| EmailAddress | string |
None. |
|
| Subscriptions | Collection of SingleSubscription |
None. |
|
| CrmContactId | globally unique identifier |
None. |
|
| CrmEntityType | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{
"ContactId": "747fc3eb-684f-42e5-b4ec-4294689df96d",
"EmailAddress": "sample string 1",
"Subscriptions": [
{
"ObjectId": "3087cb3c-a6ce-4b5d-8c0d-15184656dc36",
"ObjectType": "sample string 1",
"Name": "sample string 2"
},
{
"ObjectId": "3087cb3c-a6ce-4b5d-8c0d-15184656dc36",
"ObjectType": "sample string 1",
"Name": "sample string 2"
}
],
"CrmContactId": "48802f0a-27b9-435f-98bc-b3472512e442",
"CrmEntityType": "sample string 2"
}
application/xml, text/xml
Sample:
<UWEOSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UWEO.CRM.API.Base.Models">
<CrmContactId>48802f0a-27b9-435f-98bc-b3472512e442</CrmContactId>
<CrmEntityType>sample string 2</CrmEntityType>
<ContactId>747fc3eb-684f-42e5-b4ec-4294689df96d</ContactId>
<EmailAddress>sample string 1</EmailAddress>
<Subscriptions>
<SingleSubscription>
<Name>sample string 2</Name>
<ObjectId>3087cb3c-a6ce-4b5d-8c0d-15184656dc36</ObjectId>
<ObjectType>sample string 1</ObjectType>
</SingleSubscription>
<SingleSubscription>
<Name>sample string 2</Name>
<ObjectId>3087cb3c-a6ce-4b5d-8c0d-15184656dc36</ObjectId>
<ObjectType>sample string 1</ObjectType>
</SingleSubscription>
</Subscriptions>
</UWEOSubscription>