Esempio n. 1
0
func exportArchivesSpace(api *cait.ArchivesSpaceAPI) error {
	log.Println("Logging into ", api.BaseURL)
	err := api.Login()
	if err != nil {
		return fmt.Errorf("%s, error %s", api.BaseURL, err)
	}
	//log.Printf("export TOKEN=%s\n", api.AuthToken)
	err = api.ExportArchivesSpace()
	if err != nil {
		return fmt.Errorf("Failed to export ArchivesSpace, %s", err)
	}
	return nil
}