lib/tessitura_rest/web/session.rb in tessitura_rest-0.5.0 vs lib/tessitura_rest/web/session.rb in tessitura_rest-0.5.0.1
- old
+ new
@@ -22,13 +22,14 @@
options.merge!(basic_auth: @auth, headers: @headers)
response = self.class.get(base_api_endpoint("Web/Session/#{key}/Expiration"), options)
JSON.parse(response.body)
end
- def set_expiration(key, expiration, options={})
+ def set_expiration(key, timeoffset, expiration, options={})
parameters =
{
- 'Expiration': expiration
+ 'Expiration': expiration,
+ 'TimeOffset': timeoffset
}
options.merge!(basic_auth: @auth, headers: @headers)
options.merge!(:body => parameters)
response = self.class.put(base_api_endpoint("Web/Session/#{key}/Expiration"), options)
JSON.parse(response.body)