audible-api v1.0.1
audible-node
Audible Node Client
Audible Node Client is intended to simplify the Audible API consumption.
How to install it.
If you are using the API client in a browser or Web View. Only include it in the html document like this:
<script src="audible-api.umd.js"></script>
For Node you can install it like this:
$ npm install audible-api
and then require it in your project.
var audible = require('audible-api')
let api = new audible();
How to use it:
The Audible API client only needs a valid Token and App ID when calling an action that needs authentication. In any other case a simple initialization is enough.
Node
import audible, {ENV,VERSION} from "audible-api";
let appID = require("AppClientID");
let token = require("UserToken");
let api_register = new audible(appID,token);
api_register.getLibraryBooks('06/18/2014')
.then(function(results,status){
console.log(results.data.books.book);
})
.catch(function(error){
console.log(error);
});
Browser
Add the audible api in your html.
<script src="audible-api.umd.js"></script>
var audible = new audibleApi('myAppID''mytoken');
audible.getProductReviews("B002V1NHYC")
.then(function(results,status){
console.log(results.data);
})
.catch(function(error) {
console.log(error);
});
var api = new audibleApi('myAppID');
api.getProductReviews("B002V1NHYC")
.then(function(results,status){
console.log(results.data);
})
.catch(function(error) {
console.log(error);
});
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
6 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
8 years ago
8 years ago
8 years ago