omarroth / audible.cr Goto Github PK
View Code? Open in Web Editor NEWInterface for Audible's internal API
License: GNU Affero General Public License v3.0
Interface for Audible's internal API
License: GNU Affero General Public License v3.0
Looking through the api calls, there doesn't seem any implementation currently for getting the timestamped bookmarks and notes for an audiobook. Using the lingo bookmark here for a note without any text.
Question:
Just looking for a little clarification.
When I call puts client.get("/1.0/library").body
it doesn't seem to return everything in my whole library. It seems to be limited to 99 items in the json response.
Looking at the docs from here
Can you give me an example for how to use page: \d+
?
For this as well - num_results: \d+ (max: 1000)
.
I was able to call different ?response_groups=
by appending them to the call by following your example. /1.0/catalog/products/B002V02KPU?response_groups=product_plan_details,media,review_attrs
The little project I'm actually working on using your library is here
My "Scratch File" for this is: here (It may change as I try things).
Thanks.
Hi there, thanks for the great work, I'm currently trying to port your code to Node.js for a comprehensive library.
Currently I'm getting a little bit stuck on the encrypt_metadata method. I'm looking through your code line by line and attempting to port, but my base64 looks a little bit different.
I was wondering if you had any more information (apart from your code) on this method. Did you reference an original source somewhere? (e.g. the js client code).
Hi!
Thanks a lot for the hard work on this!
I also am a big fan of Audible and Kindle.
I tend to buy the Kindle and Audible versions of the same book.
Although, whispersync for voice is not available in my country.
However, the books I buy definitely support Whispersync for voice.
I'm looking for a homemade way to synchronize my Kindle and Audible books.
Would your API be of any help to achieve my goal?
Thanks for your help!
Trying to get this project working and I've been playing around with it.
Here are the steps I've taken.
require "audible"
client = Audible::Client.new("MY_EMAIL", "MY_PW", locale: "us")
File.write("session.json", client.to_json)
I get a url with an image to enter into the readline. Once I do, I get the following error.
Unhandled exception: Missing param name: "openid.oa2.access_token" (KeyError)
from /usr/share/crystal/src/http/params.cr:163:21 in '[]'
from lib/audible/src/audible.cr:250:25 in 'initialize:locale'
from lib/audible/src/audible.cr:105:5 in 'new:locale'
from run.cr:3:1 in '__crystal_main'
from /usr/share/crystal/src/crystal/main.cr:106:5 in 'main_user_code'
from /usr/share/crystal/src/crystal/main.cr:92:7 in 'main'
from /usr/share/crystal/src/crystal/main.cr:115:3 in 'main'
from __libc_start_main
from _start
from ???
My version of crystal:
Crystal 0.33.0 [612825a53] (2020-02-14)
LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu
My version of shards:
Shards 0.8.1 [0147a56] (2020-02-14)
My os.
Linux DESKTOP-84RDSE8 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 GNU/Linux
I am probably missing something simple. If you could nudge me in the right direction I'd sure appreciate it. Thanks for your time.
Hi omarroth,
I noticed yesterday that a post to /1.0/content/{asin}/licenserequest failed with http error 404 (url not found).
After hours of search I found the solution in the official ios audible app. There I can‘t download the whole audiobook if it‘s a multipart book. I have to download every part separately.
If you want to get download urls for multipart books you have to figure out the asin for every part of the book. Best therefore is to make call GET /1.0/library/{parent_asin} with response_groups: relationships. In the json response body you get all children_asins.
Now you can feed your licenserequest call with the children_asins.
Greets
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.