lib/tessitura_rest/web/session.rb in tessitura_rest-0.6.9 vs lib/tessitura_rest/web/session.rb in tessitura_rest-0.7.0

- old
+ new

@@ -22,9 +22,15 @@ 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 get_variables(key, options={}) + options.merge!(basic_auth: @auth, headers: @headers) + response = self.class.get(base_api_endpoint("Web/Session/#{key}/Variables"), options) + JSON.parse(response.body) + end + def set_expiration(key, timeoffset, expiration, options={}) parameters = { 'Expiration': expiration, 'TimeOffset': timeoffset