Module: TPEX::ServicesCSRF

Included in:
API
Defined in:
lib/tpex/servicescsrf.rb

Instance Method Summary collapse

Instance Method Details

#get_access_token(options = {}) ⇒ Object

Returns a token used in the X-CSRF-Token header, to prevent cross-site request forgeries



6
7
8
# File 'lib/tpex/servicescsrf.rb', line 6

def get_access_token(options={})
	post("/services/session/token", options={}, raw=false, unformatted=true, no_response_wrapper=true)
end