Skip to content

Persisting Tokens

INI file

Use PersistTokens.Key, this will be the filename of the ini file.

DataBase

Use the PersistTokens.DataSource and the PersistTokens.Location := plDataBase, to connect to a DataSource.

Required fields:

ACCESSTOKEN
AUTHENTICATIONTOKEN
ACCESSTOKENSECRET
AUTHENTICATIONTOKENSECRET
ACCESSTOKENREFRESH

Optional fields:

CLIENTID
KEY
SECRET
CALLBACKURL
EXTRA

Tokens can be saved by using PersistTokens.SaveClientID, SaveKey, SaveSecret, SaveCallBack and SaveExtra.

When calling SaveTokens, the tokens will be saved to the database. This all happens automatically once you properly configure the database, credentials and when you succesfully connect to the service.