-
Notifications
You must be signed in to change notification settings - Fork 1
/
ai_scoring.go
25 lines (20 loc) · 1012 Bytes
/
ai_scoring.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package zerobouncego
import "io"
// AiScoringSubmit - submit a file with emails for AI scoring
func AiScoringFileSubmit(csv_file CsvFile, remove_duplicate bool) (*FileValidationResponse, error) {
return GenericFileSubmit(csv_file, remove_duplicate, ENDPOINT_SCORING_SEND)
}
// BulkValidationFileStatus - check the percentage of completion of a file uploaded
// for AI scoring
func AiScoringFileStatus(file_id string) (*FileStatusResponse, error) {
return GenericFileStatusCheck(file_id, ENDPOINT_SCORING_STATUS)
}
// AiScoringResult - save a csv containing the results of the file previously sent,
// that corresponds to the given file ID parameter
func AiScoringResult(file_id string, file_writer io.Writer) error {
return GenericResultFetch(file_id, ENDPOINT_SCORING_RESULT, file_writer)
}
// AiScoringFileDelete - delete the result file associated with a file ID
func AiScoringFileDelete(file_id string) (*FileValidationResponse, error) {
return GenericFileDelete(file_id, ENDPOINT_SCORING_DELETE)
}