In order to give our clients more control over how long a Questions API session is valid for we have added an expires flag to explicitly allow over-riding the validTimestampFrame.
This optional attribute called expires can be set in the request to a GMT date of format YYYYMMDD-HHMM and it can be over-ridden on a per request basis.
This can be set to a longer period or a shorter period than the validTimestampFrame. All requests to save or submit will fail once the expires timestamp has passed. It is possible to pass this flag to the Items API in either inline mode or assess mode.
|expires||string||none||GMT date of format YYYYMMDD-HHMM|
$security = array( "consumer_key" => "INSERT_CONSUMER_KEY_HERE", "domain" => "my.domain.com", "timestamp" => gmdate("Ymd-Hi"), "user_id" => "examUser1", "expires" => "YYYYMMDD-HHMM", "consumer_secret" => "INSERT_CONSUMER_SECRET_HERE" );