Switch from open library API to Inventaire API
This commit is contained in:
@@ -3,6 +3,8 @@ package openlibrary
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"git.artlef.fr/PersonalLibraryManager/internal/callapiutils"
|
||||
)
|
||||
|
||||
type OpenLibraryAuthorResult struct {
|
||||
@@ -46,7 +48,7 @@ func CallOpenLibraryAuthor(openLibraryId string) (OpenLibraryAuthorResult, error
|
||||
return response, err
|
||||
}
|
||||
var queryResult openLibraryParsedAuthor
|
||||
err = fetchAndParseResult(u, &queryResult)
|
||||
err = callapiutils.FetchAndParseResult(u, &queryResult)
|
||||
if err != nil {
|
||||
return response, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user