GET api.ashx/v2/blogs/{blogid}/contactrequests.{json|xml}
LIST blog contact requests for a group.
Scopes
Blogs › Read Contact Requests blogs.contactrequests.readonly
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
BlogId | int | Blog Id | Required | |||
IsModerated | bool? | Is Moderated | Optional | |||
PageIndex | int? | Specify the page number of paged results to return. Zero-based index. If not specified the default is 0. | Optional | |||
PageSize | int? | Specify the number of results to return per page. If not set the default is 20. The max is 100. | Optional |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/blogs/{blogid}/contactrequests.json', data: { 'blogid': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "PageSize": 2, "PageIndex": 0, "TotalCount": 2, "ContactRequests": [ { "BlogId": 6, "Subject": "subject", "Body": "body", "Name": "name", "EmailAddress": "emailaddress", "DateCreated": "2012-01-04T00:00:00", "IsModerated": true, "Excerpt": "excerpt", "Id": 25 }, { "BlogId": 8, "Subject": "subject", "Body": "body", "Name": "name", "EmailAddress": "emailaddress", "DateCreated": "2012-05-02T00:00:00", "IsModerated": true, "Excerpt": "excerpt", "Id": 4 } ], "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> <ContactRequests PageSize="2" PageIndex="0" TotalCount="2"> <ContactRequest> <Id>25</Id> <BlogId>6</BlogId> <Subject>subject</Subject> <Body>body</Body> <Name>name</Name> <EmailAddress>emailaddress</EmailAddress> <DateCreated>2012-01-04T00:00:00</DateCreated> <IsModerated>true</IsModerated> <Excerpt>excerpt</Excerpt> </ContactRequest> <ContactRequest> <Id>4</Id> <BlogId>8</BlogId> <Subject>subject</Subject> <Body>body</Body> <Name>name</Name> <EmailAddress>emailaddress</EmailAddress> <DateCreated>2012-05-02T00:00:00</DateCreated> <IsModerated>true</IsModerated> <Excerpt>excerpt</Excerpt> </ContactRequest> </ContactRequests> </Response>