void Start()
    {
        //construct a new configuration object using the client ID from the sidequest app management page,
        //      a path where persistent data can be stored, a flag for test mode,
        //      and optionally a filename that will be used to save data
        SqAppApiConfig config = new SqAppApiConfig(SQ_API_CLIENT_ID, Application.persistentDataPath, true);

        //create a new instance of the api class using the config.
        //Only one instance of this class should be created for the scope of the application so that it can properly maintain its state
        sq = new SqAppApi(config);
        SetLoginState();
        if (sq.User != null)
        {
            Debug.Log("User is logged in at startup, refreshing the user's profile");
            RefreshUser();
        }
    }
 /// <summary>
 /// Create a new instance
 /// </summary>
 /// <param name="config">The configuration options that should be used</param>
 public SqAppApi(SqAppApiConfig config)
 {
     Config = config;
     LoadData();
 }