J-Novel Club
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users

    Developer PSA: Current EPUB download links will be replaced soon

    Suggestions & Feedback
    2
    5
    433
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chocolatkey
      chocolatkey Staff last edited by chocolatkey

      As part of improvements to our backend, we will be retiring our old premium ebook download endpoint, https://api.j-novel.club/api/volumes/{volume ID}/getpremiumebook. For future usage, I strongly recommend not hardcoding a URL, but rather getting it from the response of one of these endpoints:

      POST https://labs.j-novel.club/app/v1/me/redeem/{volume ID}?format=json
      GET https://labs.j-novel.club/app/v1/me/library?format=json
      GET https://labs.j-novel.club/app/v1/me/library/{book copy ID}?format=json
      GET https://labs.j-novel.club/app/v1/me/library/volume/{volume ID}?format=json
      

      At the moment, the link leads to the old getpremiumebook endpoint. Once the new endpoint is live, the URLs in responses will be switched over to the new endpoint. New URLs will continue to include authentication parameters. Those responses include the new URLs

      nofairytale 1 Reply Last reply Reply Quote 3
      • nofairytale
        nofairytale @chocolatkey last edited by

        @chocolatkey here's hoping the new download system lets us see the version number

        chocolatkey 1 Reply Last reply Reply Quote 0
        • chocolatkey
          chocolatkey Staff @nofairytale last edited by

          @nofairytale There is no version number at the moment until we significantly revamp our backend, however there is a last modified date accessible you can use (will be used to provide update notifications in the future).

          nofairytale 1 Reply Last reply Reply Quote 7
          • nofairytale
            nofairytale @chocolatkey last edited by

            @chocolatkey that's fine too, as long as there's an indication of whether I need to update my copy... thanks! 👍

            1 Reply Last reply Reply Quote 1
            • chocolatkey
              chocolatkey Staff last edited by

              Update: as of now all ebook downloads will update a last downloaded date in the database, which is also available in the response data when set

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post