// Here we use the saveBills function even if what we fetch are not bills,
// but this is the most common case in connectors
log('info','Saving data to Cozy')
awaitsaveBills(documents,fields,{
// This is a bank identifier which will be used to link bills to bank operations. These
// identifiers should be at least a word found in the title of a bank operation related to this
// bill. It is not case sensitive.
identifiers:['books'],
sourceAccount:this.accountId,
sourceAccountIdentifier:fields.login
})
}
// This shows authentication using the [signin function](https://github.com/konnectors/libs/blob/master/packages/cozy-konnector-libs/docs/api.md#module_signin)
// even if this in another domain here, but it works as an example