Setup
In order to use fseconomy you either need to have a valid FSEconomy User key (plus a group key if accessing group resources), or a valid FSEconomy service key. Please consult the FSEconomy Operations Guide for further information.
If you have a FSEconomy User key, you can set it using the set_user_key() function:
import fseconomy
fseconomy.set_user_key('YOUR-USER-KEY')
If you want to use a group key, you can set it using the set_access_key() function:
import fseconomy
fseconomy.set_access_key('YOUR-ACCESS-KEY')
If you have a FSEconomy service key, you can set it using the set_service_key() function:
import fseconomy
fseconomy.set_service_key('YOUR-SERVICE-KEY')
Note
If available, the service key is preferred over the (personal) user key.
If no access key has been defined, the user key is used as default.