Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
NameTypeDescription
startXmlDateTimeOffset

The earliest modification date included in the response foods. Use null for search results. Do not include start for no start bound. DateTime MUST be in UTCBe sure to review the guidelines for formatting XmlDateTimeOffset requests.

Code Block
languagejs
titleJSON Example
"Start":{"DateTime":"2015-06-01T00:00:00","UtcOffsetInMinutes":-480} 
Code Block
languagexml
titleXML 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 response foods. Use nullsearch results. Do not include end for no end bound. DateTime MUST be in UTCBe sure to review the guidelines for formatting XmlDateTimeOffset requests.

Code Block
languagejs
titleJSON Example
"End":{"DateTime":"2015-06-30T00:00:00","UtcOffsetInMinutes":-480} 
Code Block
languagexml
titleXML 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.

Code Block
languagejs
titlestartrow
"startrow":10
Code Block
languagexml
titlestartrow
<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.

Code Block
languagejs
titlepagesize
"pagesize":10
Code Block
languagexml
titlepagesize
<PageSize>10</PageSize

Anchor
Formatting
Formatting

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):

Code Block
languagejs
titleSample 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.