POST api.ashx/v2/blogs/{blogid}/contactrequests.{json|xml}
CREATE a blog contact request.
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
BlogId | int | Blog Id | Required | |||
Body | string | Body | Required | |||
EmailAddress | string | Email Address | Required | |||
IPAddress | string | I P Address | Required | |||
Name | string | Name | Required | |||
Subject | string | Subject | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/blogs/{blogid}/contactrequests.json', data: { 'blogid': '6', 'Body': 'body', 'EmailAddress': 'emailaddress', 'IPAddress': 'ipaddress', 'Name': 'name', 'Subject': 'subject' } }).then(function(response) { // use response });
Example Responses
JSON
{ "ContactRequest": { "BlogId": 6, "Subject": "subject", "Body": "body", "Name": "name", "EmailAddress": "emailaddress", "DateCreated": "2012-01-04T00:00:00", "IsModerated": true, "Excerpt": "excerpt", "Id": 25 }, "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> <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> </Response>