PublishedFoodsByModifiedDateRangeRequest

NameTypeDescription
startXmlDateTimeOffset

The earliest modification date included in the search results. Do not include start for no start bound. Be sure to review the guidelines for formatting XmlDateTimeOffset requests.

JSON Example
"Start":{"DateTime":"2015-06-01T00:00:00","UtcOffsetInMinutes":-480} 
XML Example
<api:Start><exlx:DateTime>2015-06-01T00:00:00</exlx:DateTime><exlx:UtcOffsetInMinutes>-480</exlx:UtcOffsetInMinutes></api:Start
endXmlDateTimeOffset

The latest modification date included in the search results. Do not include end for no end bound. Be sure to review the guidelines for formatting XmlDateTimeOffset requests.

JSON Example
"End":{"DateTime":"2015-06-30T00:00:00","UtcOffsetInMinutes":-480} 
XML Example
<api:End><exlx:DateTime>2015-06-30T23:59:59</exlx:DateTime><exlx:UtcOffsetInMinutes>-480</exlx:UtcOffsetInMinutes></api:End>
startrowint

The first food included in the search results. The default value is 1.

startrow
"startrow":10
startrow
<StartRow>10</StartRow>
pagesizeint

The number of foods included in the search results. The default value is the total number of search results after startrow.

pagesize
"pagesize":10
pagesize
<PageSize>10</PageSize

Formatting XmlDateTimeOffset Requests

The "DateTime" property in the XmlDateTimeOffset request must be converted from the local system time to UTC time, and the local system UTC offset must be converted to minutes and included in the "UtcOffsetInMinutes" property.

For example, a request must be formatted as follows if my system time is PST (-08:00):

Sample JSON Request
{	
	"Start":{"DateTime":"2017-01-01T08:00:00","UtcOffsetInMinutes":-480}, 
	"End":{"DateTime":"2017-01-01T08:15:00","UtcOffsetInMinutes":-480}
}

The UtcOffsetInMinutes is applied to the UTC DateTime value in order to represent the local time and this request will return any foods modified between 2017-01-01 12:00 and 2017-01-01 12:15 local server time.