Switch from open library API to Inventaire API
This commit is contained in:
@@ -62,8 +62,8 @@ export function postBook(book) {
|
||||
return genericPayloadCall('/book', book.value, 'POST')
|
||||
}
|
||||
|
||||
export async function postImportBook(id) {
|
||||
return genericPayloadCall('/importbook', {openlibraryid: id}, 'POST');
|
||||
export async function postImportBook(id, language) {
|
||||
return genericPayloadCall('/importbook', {inventaireid: id, lang: language}, 'POST');
|
||||
}
|
||||
|
||||
export async function putReadBook(bookId) {
|
||||
|
||||
Reference in New Issue
Block a user