Guest User

Untitled

a guest
May 14th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.90 KB | None | 0 0
  1. [
  2.   {
  3.     "NewEntitlement": {
  4.       "BookEntitlement": {
  5.         "ActivePeriod": {
  6.           "From": %STRING, timestamp | Timestamp at which the book became available to the user%
  7.         },
  8.         "IsRemoved": %BOOL | Is it deleted locally, but not online%,
  9.         "Status": %STRING | Current book status, these status include "Active"%,
  10.         "Accessibility": %STRING | How much of the book you're allowed to access, could be useful for previews or limited books%,
  11.        "CrossRevisionId": %STRING, uuid | Unspecified UUID%,
  12.        "RevisionId": %STRING, uuid | UUID of the current version of the book%,
  13.        "IsHiddenFromArchive": %BOOL | Can it be archived?%,
  14.        "Id": %STRING, uuid | Store UUID of the book%,
  15.        "Created": %STRING, timestamp | When was the book first added to the  user's account%,
  16.         "LastModified": %STRING, timestamp | When was the book last modified?%,
  17.         "IsLocked": %BOOL | Probably for remote right management, but not sure%,
  18.         "OriginCategory": %STRING | What category did the book come from? Example: "Free"%
  19.       },
  20.       "ReadingState": {
  21.         "EntitlementId": %STRING, uuid | yet another book UUID%,
  22.         "Created": %STRING, timestamp | When was the book first added to the device%,
  23.         "LastModified": %STRING, timestamp | When was the book last modified?%,
  24.         "StatusInfo": {
  25.           "LastModified": %STRING, timestamp | When was the book last modified?%,
  26.           "Status": %STRING | Book status, example "ReadyToRead"%,
  27.           "TimesStartedReading": %INTEGER | How much time have you started to read the book%
  28.         },
  29.         "Statistics": {
  30.           "LastModified":  %STRING, timestamp | When was the book last modified?%
  31.         },
  32.         "CurrentBookmark": {
  33.           "LastModified":  %STRING, timestamp | When was the book last modified?%
  34.         },
  35.         "PriorityTimestamp":  %STRING, timestamp | Organizational timestamp to be sure that the book is always the latest version%
  36.       },
  37.       "BookMetadata": {
  38.         "CrossRevisionId": %STRING, uuid | yet another book UUID%,
  39.         "RevisionId": %STRING, uuid | UUID of the current version of the book%,
  40.         "Publisher": {
  41.           "Name": %STRING | Publisher's name%,
  42.          "Imprint": ""
  43.        },
  44.        "PublicationDate": %STRING, timestamp | When was the book published?%,
  45.        "Language": %STRING, ISO639-1 | What language is the book in?%,
  46.        "Isbn": %STRING | Book ISBN%,
  47.        "Genre": %STRING, uuid | Book's "genre" category%,
  48.         "Slug": %STRING | book title stripped of special characters and without space%,
  49.         "CoverImageId": %STRING, uuid | What is the UUID of the cover?%,
  50.         "IsSocialEnabled": %BOOL | Can you share things about this book to social media?",
  51.        "WorkId": %STRING, uuid | I have no idea, kobo has WAAAAAAAAY too many UUIDs%,
  52.        "ExternalIds": %ARRAY | Not sure%,
  53.        "IsPreOrder": %BOOL | Is it a preorder?%,
  54.        "ContributorRoles": [
  55.          {
  56.            "Name": %STRING | Name of whoever worked on that book%
  57.          }
  58.        ],
  59.        "IsInternetArchive": %BOOL | Does it come from the archive?%,
  60.        "EntitlementId": %STRING, uuid | yet another book UUID%,
  61.        "Title": %STRING | Book title%,
  62.        "Description": %STRING | Short description of the book in HTML%
  63.        "Categories": %STRING ARRAY, uuid | Contains the categories the book belongs to%,
  64.        "DownloadUrls": [
  65.          {
  66.            "DrmType": "None",
  67.            "Format": "EPUB_TABLEOFCONTENTS",
  68.            "Url": %STRING | Store download URL and Token%,
  69.            "Platform": %STRING | Target platform of the book, Kobos are treated as "Android", but "Generic" also exists%,
  70.            "Size": %INTEGER | Size in bytes%
  71.          },
  72.          {
  73.            "DrmType": "SignedNoDrm",
  74.            "Format": "KEPUB",
  75.            "Url": %STRING | Store download URL and Token%,
  76.            "Platform": %STRING | Target platform of the book, Kobos are treated as "Android", but "Generic" also exists%,
  77.            "Size": %INTEGER | Size in bytes%
  78.          },
  79.          {
  80.            "DrmType": "None",
  81.            "Format": "EPUB_SAMPLE",
  82.            "Url": %STRING | Store download URL and Token%,
  83.            "Platform": %STRING | Target platform of the book, Kobos are treated as "Android", but "Generic" also exists%,
  84.            "Size": %INTEGER | Size in bytes%
  85.          }
  86.        ],
  87.        "Contributors": [
  88.          %STRING OBJECT | Authors/Contributors to the file%
  89.        ],
  90.        "Series": %OBJECT | Not sure%,
  91.        "CurrentDisplayPrice": {
  92.          "TotalAmount": %FLOAT | Price in-store%,
  93.          "CurrencyCode": %STRING | Currency code, USD, CAD or EUR for example%
  94.        },
  95.        "CurrentLoveDisplayPrice": {
  96.          "TotalAmount": %FLOAT | Price with "Kobo Love"%
  97.        },
  98.        "IsEligibleForKoboLove": %BOOL | Is the book affected by kobo love, what is it?%,
  99.        "PhoneticPronunciations": %OBJECT | Not sure%
  100.      }
  101.    }
  102.  },
  103.  {
  104.    "ChangedTag": {
  105.      "Tag": {
  106.        "Id": %STRING, uuid | Book tag UUID%,
  107.        "Name": %STRING | Tag user-friendly name%,
  108.        "Type": %STRING | Tag type, example: "SystemTag"%,
  109.        "Items": [
  110.          {
  111.            "RevisionId": %STRING, uuid | Book revision UUID%,
  112.            "Type": "ProductRevisionTagItem"
  113.          },
  114.          {
  115.            "RevisionId": %STRING, uuid | Book revision UUID%,
  116.            "Type": "ProductRevisionTagItem"
  117.          },
  118.          {
  119.            "RevisionId": %STRING, uuid | Book revision UUID%,
  120.            "Type": "ProductRevisionTagItem"
  121.          },
  122.          {
  123.            %STRING, uuid | Book revision UUID%,
  124.            "Type": "ProductRevisionTagItem"
  125.          }
  126.        ],
  127.        %STRING, timestamp | When was the book first added to the store%,
  128.        %STRING, timestamp | When was the book last modified%
  129.      }
  130.    }
  131.  }
  132. ]
Advertisement
Add Comment
Please, Sign In to add comment