API . .

 

ISBN-

:

. ISBN- .

:

POST

:

https://model.lfab.ru/books/search/get-isbns

. :

'x-access-tokens:_'

:

'search'

'from_book' . , 0.

qti_book . , 24.

JSON :

{"count": "1000", // ,

"books": // ISBN- ,

["9780015200510", "9780013777700", "9780013858850", "9780013235640", "9780016459980", "9780012283260", "9780014471750", "9780014478240", "9780012800160", "9780012897510", "9780014554890", "9780014234360", "9780014654460", "9780014316870", "9780014234480", "9780014317640", "9780014234420", "9780014240640", "9780012682190", "9780014321150", "9780014407870", "9780014835090", "9780012711320", "9780014418570"]

}

 

:

. .

:

POST

:

https://model.lfab.ru/books/search/get-descriptions

. :

'x-access-tokens:_'

:

'search'

'from_book' . , 0.

qti_book . , 24.

JSON :

{"count": "1000",

"books": [

{"isbn": "9780013891970",

"name": "", //

"author": "", //

"publisher": "", //

"pages": "99", //

"year": "1991", //

"description": " ", //

"series": " ", //

"photo_uri": "https://www.bookvoed.ru/files/1836/45/52/79/4.jpeg", //

"balance": [ //

{

"shop_id":"1", //

"shop_name":" ", //

"shop_address":" ", //

"price": "100", //

"quantity":" 3" //

},

]

},

]}

 

ISBN-

:

. ISBN- , .

:

POST

:

'https://model.lfab.ru/books/by-cover/get-isbns

. :

'x-access-tokens:_'

:

'img' .

JQuery AJAX:

pic = canvas.toDataURL('image/jpeg', 1.0);

$.ajax({

url: 'https://model.lfab.ru/books/by-cover/get-isbns',

headers: {'x-access-tokens': '6a01c000000000000000000000389'},

type: 'POST',

data: {img:pic},

success: function(msg) { }

});

 

JSON 12 ISBN-:

["9780016576340", "9785222274569", "9785916713725", "9785222326954", "9785961449716", "9783791356143", "9785989950331", "184749417", "9785170880768", "9785961447057", "9785001158516", "9785996613816"]

 

 

:

. , .

:

POST

:

'https://model.lfab.ru/books/by-cover/get-descriptions

. :

'x-access-tokens:_'

:

'img' .

JQuery AJAX:

pic = canvas.toDataURL('image/jpeg', 1.0);

$.ajax({

url: 'https://model.lfab.ru/books/by-cover/get-isbns',

headers: {'x-access-tokens': '6a01c000000000000000000000389'},

type: 'POST',

data: {img:pic},

success: function(msg) { }

});

 

JSON :

[

{"isbn": "9780013891970",

"name": "", //

"author": "", //

"publisher": "", //

"pages": "99", //

"year": "1991", //

"description": " ", //

"series": " ", //

"photo_uri": "https://www.bookvoed.ru/files/1836/45/52/79/4.jpeg", //

"balance": [ //

{

"shop_id":"1", //

"shop_name":" ", //

"shop_address":" ", //

"price": "100", //

"quantity":" 3" //

},

]

},

]

 

 

:

.

:

GET

:

https://model.lfab.ru/ shops/get-descriptions

. :

'x-access-tokens:_'

JSON :

[{"id": "0",

"company":"",

"name": "- bookvoed.ru",

"town": "-",

"district": "None",

"metro": "None",

"address": "None",

"phone": "None",

"open_at": "None"},

]

 

ISBN

:

.

:

GET

:

https://model.lfab.ru /books/book/get-description/{ISBN}

. :

'x-access-tokens:_'

JSON :

{"isbn": "9780013891970",

"name": "", //

"author": "", //

"publisher": "", //

"pages": "99", //

"year": "1991", //

"description": " ", //

"series": " ", //

"photo_uri": "https://www.bookvoed.ru/files/1836/45/52/79/4.jpeg", //

"balance": [ //

{

"shop_id":"1", //

"shop_name":" ", //

"shop_address":" ", //

"price": "100", //

"quantity":" 3" //

},

]

}