lib/tessitura_rest/web/session.rb in tessitura_rest-1.1.0 vs lib/tessitura_rest/web/session.rb in tessitura_rest-1.1.1

- old
+ new

@@ -22,9 +22,19 @@ 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 transfer_session(session_key, new_session_key, options={}) + parameters = + { + 'NewSessionKey': new_session_key, + } + options.merge!(basic_auth: @auth, headers: @headers) + options.merge!(body: parameters) + self.class.post(base_api_endpoint("Web/Session/#{session_key}/Transfer"), options) + 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