Giter Club home page Giter Club logo

audible.cr's People

Contributors

omarroth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

audible.cr's Issues

How to get notes and bookmarks?

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.

Looking for an example call to get every book in library.

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.

  • I have over 450+ books in my library.

Looking at the docs from here

Can you give me an example for how to use page: \d+?

  • I'm unsure what '\d+' actually means.
  • How would I go about requesting a specific page, or all the pages, for my whole library?

For this as well - num_results: \d+ (max: 1000).

  • Just looking for some examples on how to go about calling different parameters listed in the docs.

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.

encrypt_metadata method

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).

Whispersync for voice

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!

Unhandled exception: Missing param name: "openid.oa2.access_token" (KeyError)

Trying to get this project working and I've been playing around with it.

Here are the steps I've taken.

  • Install crystal.
  • create a shard.yml file & run shards install. It pulls down the dependencies, and this project.
  • create a test crystal file called run.cr.

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.

licenserequest for multipart books

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.