Get CSRF Token
Get CSRF Token - kintone.getRequestToken()
Retrieves a CSRF token to be used for file downloads/uploads.
This can be used for all APIs that have an HTTP method of POST, PUT and DELETE. APIs with an HTTP method of GET do not need a CSRF token.
Function
kintone.getRequestToken()
Request Parameters
None
Returns
A string containing the CSRF Token.
Available Period
86400 seconds (1 day) from the last access.
Sample Request
|
|
Sample for APIs using Query Strings
|
|
Sample for APIs using JSON
|
|
Request headers needed with the APIs
Header | Content |
---|---|
X-Requested-With | XMLHttpRequest |
Content-Type | application/json |