diff --git a/backend/src/main/java/org/booklore/service/kobo/KoboResourcesComponent.java b/backend/src/main/java/org/booklore/service/kobo/KoboResourcesComponent.java index 481905b7f..2fd0c44bb 100644 --- a/backend/src/main/java/org/booklore/service/kobo/KoboResourcesComponent.java +++ b/backend/src/main/java/org/booklore/service/kobo/KoboResourcesComponent.java @@ -1,189 +1,37 @@ package org.booklore.service.kobo; import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import tools.jackson.core.JacksonException; import tools.jackson.databind.ObjectMapper; import tools.jackson.databind.node.ObjectNode; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; + +@Slf4j @AllArgsConstructor @Component public class KoboResourcesComponent { private final ObjectMapper objectMapper; + private String getFileFromClassPath(String filename) { + String path = "kobo/" + filename; + + try (InputStream is = getClass().getClassLoader().getResourceAsStream(path)) { + assert is != null; + + return new String(is.readAllBytes(), StandardCharsets.UTF_8); + } catch (IOException e) { + log.error("Unable to load initialization resource", e); + return "{}"; + } + } + public ObjectNode getResources() throws JacksonException { - return (ObjectNode) objectMapper.readTree( - """ - { - "account_page": "https://www.kobo.com/account/settings", - "account_page_rakuten": "https://my.rakuten.co.jp/", - "add_device": "https://storeapi.kobo.com/v1/user/add-device", - "add_entitlement": "https://storeapi.kobo.com/v1/library/{RevisionIds}", - "affiliaterequest": "https://storeapi.kobo.com/v1/affiliate", - "assets": "https://storeapi.kobo.com/v1/assets", - "audiobook": "https://storeapi.kobo.com/v1/products/audiobooks/{ProductId}", - "audiobook_detail_page": "https://www.kobo.com/{region}/{language}/audiobook/{slug}", - "audiobook_get_credits": "https://www.kobo.com/{region}/{language}/audiobooks/plans", - "audiobook_landing_page": "https://www.kobo.com/{region}/{language}/audiobooks", - "audiobook_preview": "https://storeapi.kobo.com/v1/products/audiobooks/{Id}/preview", - "audiobook_purchase_withcredit": "https://storeapi.kobo.com/v1/store/audiobook/{Id}", - "audiobook_subscription_management": "https://www.kobo.com/{region}/{language}/account/subscriptions", - "audiobook_subscription_orange_deal_inclusion_url": "https://authorize.kobo.com/inclusion", - "audiobook_subscription_purchase": "https://www.kobo.com/{region}/{language}/checkoutoption/21C6D938-934B-4A91-B979-E14D70B2F280", - "audiobook_subscription_tiers": "https://www.kobo.com/{region}/{language}/checkoutoption/21C6D938-934B-4A91-B979-E14D70B2F280", - "authorproduct_recommendations": "https://storeapi.kobo.com/v1/products/books/authors/recommendations", - "autocomplete": "https://storeapi.kobo.com/v1/products/autocomplete", - "blackstone_header": { - "key": "x-amz-request-payer", - "value": "requester" - }, - "book": "https://storeapi.kobo.com/v1/products/books/{ProductId}", - "book_detail_page": "https://www.kobo.com/{region}/{language}/ebook/{slug}", - "book_detail_page_rakuten": "https://books.rakuten.co.jp/rk/{crossrevisionid}", - "book_landing_page": "https://www.kobo.com/ebooks", - "book_subscription": "https://storeapi.kobo.com/v1/products/books/subscriptions", - "browse_history": "https://storeapi.kobo.com/v1/user/browsehistory", - "categories": "https://storeapi.kobo.com/v1/categories", - "categories_page": "https://www.kobo.com/ebooks/categories", - "category": "https://storeapi.kobo.com/v1/categories/{CategoryId}", - "category_featured_lists": "https://storeapi.kobo.com/v1/categories/{CategoryId}/featured", - "category_products": "https://storeapi.kobo.com/v1/categories/{CategoryId}/products", - "checkout_borrowed_book": "https://storeapi.kobo.com/v1/library/borrow", - "client_authd_referral": "https://authorize.kobo.com/api/AuthenticatedReferral/client/v1/getLink", - "configuration_data": "https://storeapi.kobo.com/v1/configuration", - "content_access_book": "https://storeapi.kobo.com/v1/products/books/{ProductId}/access", - "customer_care_live_chat": "https://v2.zopim.com/widget/livechat.html?key=Y6gwUmnu4OATxN3Tli4Av9bYN319BTdO", - "daily_deal": "https://storeapi.kobo.com/v1/products/dailydeal", - "deals": "https://storeapi.kobo.com/v1/deals", - "delete_entitlement": "https://storeapi.kobo.com/v1/library/{Ids}", - "delete_tag": "https://storeapi.kobo.com/v1/library/tags/{TagId}", - "delete_tag_items": "https://storeapi.kobo.com/v1/library/tags/{TagId}/items/delete", - "device_auth": "https://storeapi.kobo.com/v1/auth/device", - "device_refresh": "https://storeapi.kobo.com/v1/auth/refresh", - "dictionary_host": "https://ereaderfiles.kobo.com", - "discovery_host": "https://discovery.kobobooks.com", - "dropbox_link_account_poll": "https://authorize.kobo.com/{region}/{language}/LinkDropbox", - "dropbox_link_account_start": "https://authorize.kobo.com/LinkDropbox/start", - "eula_page": "https://www.kobo.com/termsofuse?style=onestore", - "ereaderdevices": "https://storeapi.kobo.com/v2/products/EReaderDeviceFeeds", - "exchange_auth": "https://storeapi.kobo.com/v1/auth/exchange", - "external_book": "https://storeapi.kobo.com/v1/products/books/external/{Ids}", - "facebook_sso_page": "https://authorize.kobo.com/signin/provider/Facebook/login?returnUrl=http://kobo.com/", - "featured_list": "https://storeapi.kobo.com/v1/products/featured/{FeaturedListId}", - "featured_lists": "https://storeapi.kobo.com/v1/products/featured", - "free_books_page": { - "EN": "https://www.kobo.com/{region}/{language}/p/free-ebooks", - "FR": "https://www.kobo.com/{region}/{language}/p/livres-gratuits", - "IT": "https://www.kobo.com/{region}/{language}/p/libri-gratuiti", - "NL": "https://www.kobo.com/{region}/{language}/List/bekijk-het-overzicht-van-gratis-ebooks/QpkkVWnUw8sxmgjSlCbJRg", - "PT": "https://www.kobo.com/{region}/{language}/p/livros-gratis" - }, - "fte_feedback": "https://storeapi.kobo.com/v1/products/ftefeedback", - "funnel_metrics": "https://storeapi.kobo.com/v1/funnelmetrics", - "get_download_keys": "https://storeapi.kobo.com/v1/library/downloadkeys", - "get_download_link": "https://storeapi.kobo.com/v1/library/downloadlink", - "get_tests_request": "https://storeapi.kobo.com/v1/analytics/gettests", - "giftcard_epd_redeem_url": "https://www.kobo.com/{storefront}/{language}/redeem-ereader", - "giftcard_redeem_url": "https://www.kobo.com/{storefront}/{language}/redeem", - "googledrive_link_account_start": "https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive", - "gpb_flow_enabled": "False", - "help_page": "https://www.kobo.com/help", - "image_host": "https://cdn.kobo.com/book-images/", - "image_url_quality_template": "https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/{Quality}/{IsGreyscale}/image.jpg", - "image_url_template": "https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/false/image.jpg", - "instapaper_enabled": "True", - "instapaper_env_url": "https://www.instapaper.com/api/kobo", - "instapaper_link_account_start": "https://authorize.kobo.com/{region}/{language}/linkinstapaper", - "kobo_audiobooks_credit_redemption": "True", - "kobo_audiobooks_enabled": "True", - "kobo_audiobooks_orange_deal_enabled": "True", - "kobo_audiobooks_subscriptions_enabled": "True", - "kobo_display_price": "True", - "kobo_dropbox_link_account_enabled": "True", - "kobo_google_tax": "False", - "kobo_googledrive_link_account_enabled": "True", - "kobo_nativeborrow_enabled": "True", - "kobo_onedrive_link_account_enabled": "False", - "kobo_onestorelibrary_enabled": "False", - "kobo_privacyCentre_url": "https://www.kobo.com/privacy", - "kobo_redeem_enabled": "True", - "kobo_shelfie_enabled": "False", - "kobo_subscriptions_enabled": "True", - "kobo_superpoints_enabled": "True", - "kobo_wishlist_enabled": "True", - "library_book": "https://storeapi.kobo.com/v1/user/library/books/{LibraryItemId}", - "library_items": "https://storeapi.kobo.com/v1/user/library", - "library_metadata": "https://storeapi.kobo.com/v1/library/{Ids}/metadata", - "library_prices": "https://storeapi.kobo.com/v1/user/library/previews/prices", - "library_search": "https://storeapi.kobo.com/v1/library/search", - "library_sync": "https://storeapi.kobo.com/v1/library/sync", - "love_dashboard_page": "https://www.kobo.com/{region}/{language}/kobosuperpoints", - "love_points_redemption_page": "https://www.kobo.com/{region}/{language}/KoboSuperPointsRedemption?productId={ProductId}", - "magazine_landing_page": "https://www.kobo.com/emagazines", - "more_sign_in_options": "https://authorize.kobo.com/signin?returnUrl=http://kobo.com/#allProviders", - "notebooks": "https://storeapi.kobo.com/api/internal/notebooks", - "notifications_registration_issue": "https://storeapi.kobo.com/v1/notifications/registration", - "oauth_host": "https://oauth.kobo.com", - "password_retrieval_page": "https://www.kobo.com/passwordretrieval.html", - "personalizedrecommendations": "https://storeapi.kobo.com/v2/users/personalizedrecommendations", - "pocket_link_account_start": "https://authorize.kobo.com/{region}/{language}/linkpocket", - "post_analytics_event": "https://storeapi.kobo.com/v1/analytics/event", - "ppx_purchasing_url": "https://purchasing.kobo.com", - "privacy_page": "https://www.kobo.com/privacypolicy?style=onestore", - "product_nextread": "https://storeapi.kobo.com/v1/products/{ProductIds}/nextread", - "product_prices": "https://storeapi.kobo.com/v1/products/{ProductIds}/prices", - "product_recommendations": "https://storeapi.kobo.com/v1/products/{ProductId}/recommendations", - "product_reviews": "https://storeapi.kobo.com/v1/products/{ProductIds}/reviews", - "products": "https://storeapi.kobo.com/v1/products", - "productsv2": "https://storeapi.kobo.com/v2/products", - "provider_external_sign_in_page": "https://authorize.kobo.com/ExternalSignIn/{providerName}?returnUrl=http://kobo.com/", - "purchase_buy": "https://www.kobo.com/checkoutoption/", - "purchase_buy_templated": "https://www.kobo.com/{region}/{language}/checkoutoption/{ProductId}", - "quickbuy_checkout": "https://storeapi.kobo.com/v1/store/quickbuy/{PurchaseId}/checkout", - "quickbuy_create": "https://storeapi.kobo.com/v1/store/quickbuy/purchase", - "rakuten_token_exchange": "https://storeapi.kobo.com/v1/auth/rakuten_token_exchange", - "rating": "https://storeapi.kobo.com/v1/products/{ProductId}/rating/{Rating}", - "reading_services_host": "https://readingservices.kobo.com", - "reading_state": "https://storeapi.kobo.com/v1/library/{Ids}/state", - "redeem_interstitial_page": "https://www.kobo.com", - "registration_page": "https://authorize.kobo.com/signup?returnUrl=http://kobo.com/", - "related_items": "https://storeapi.kobo.com/v1/products/{Id}/related", - "remaining_book_series": "https://storeapi.kobo.com/v1/products/books/series/{SeriesId}", - "rename_tag": "https://storeapi.kobo.com/v1/library/tags/{TagId}", - "review": "https://storeapi.kobo.com/v1/products/reviews/{ReviewId}", - "review_sentiment": "https://storeapi.kobo.com/v1/products/reviews/{ReviewId}/sentiment/{Sentiment}", - "shelfie_recommendations": "https://storeapi.kobo.com/v1/user/recommendations/shelfie", - "sign_in_page": "https://auth.kobobooks.com/ActivateOnWeb", - "social_authorization_host": "https://social.kobobooks.com:8443", - "social_host": "https://social.kobobooks.com", - "store_home": "www.kobo.com/{region}/{language}", - "store_host": "www.kobo.com", - "store_newreleases": "https://www.kobo.com/{region}/{language}/List/new-releases/961XUjtsU0qxkFItWOutGA", - "store_search": "https://www.kobo.com/{region}/{language}/Search?Query={query}", - "store_top50": "https://www.kobo.com/{region}/{language}/ebooks/Top", - "subs_landing_page": "https://www.kobo.com/{region}/{language}/plus", - "subs_management_page": "https://www.kobo.com/{region}/{language}/account/subscriptions", - "subs_plans_page": "https://www.kobo.com/{region}/{language}/plus/plans", - "subs_purchase_buy_templated": "https://www.kobo.com/{region}/{language}/Checkoutoption/{ProductId}/{TierId}", - "subscription_publisher_price_page": "https://www.kobo.com/{region}/{language}/subscriptionpublisherprice", - "tag_items": "https://storeapi.kobo.com/v1/library/tags/{TagId}/Items", - "tags": "https://storeapi.kobo.com/v1/library/tags", - "taste_profile": "https://storeapi.kobo.com/v1/products/tasteprofile", - "terms_of_sale_page": "https://authorize.kobo.com/{region}/{language}/terms/termsofsale", - "update_accessibility_to_preview": "https://storeapi.kobo.com/v1/library/{EntitlementIds}/preview", - "use_one_store": "True", - "user_loyalty_benefits": "https://storeapi.kobo.com/v1/user/loyalty/benefits", - "user_platform": "https://storeapi.kobo.com/v1/user/platform", - "user_profile": "https://storeapi.kobo.com/v1/user/profile", - "user_ratings": "https://storeapi.kobo.com/v1/user/ratings", - "user_recommendations": "https://storeapi.kobo.com/v1/user/recommendations", - "user_reviews": "https://storeapi.kobo.com/v1/user/reviews", - "user_wishlist": "https://storeapi.kobo.com/v1/user/wishlist", - "userguide_host": "https://ereaderfiles.kobo.com", - "wishlist_page": "https://www.kobo.com/{region}/{language}/account/wishlist" - } - """ - ); + return (ObjectNode) objectMapper.readTree(getFileFromClassPath("resources.json")); } } diff --git a/backend/src/main/resources/kobo/resources.json b/backend/src/main/resources/kobo/resources.json new file mode 100644 index 000000000..0819f4a06 --- /dev/null +++ b/backend/src/main/resources/kobo/resources.json @@ -0,0 +1,196 @@ +{ + "user_tasteprofile_genre":"https://storeapi.kobo.com/v2/user/tasteprofile/genre", + "user_tasteprofile_complete":"https://storeapi.kobo.com/v2/user/tasteprofile/complete", + "sepa_banks":"https://storeapi.kobo.com/v2/purchasing/sepa/banks", + "morebyauthor":"https://storeapi.kobo.com/v2/products/recommendations/morebyauthor", + "related":"https://storeapi.kobo.com/v2/products/recommendations/related", + "featuredlist2":"https://storeapi.kobo.com/v2/products/list/featured", + "topproducts":"https://storeapi.kobo.com/v2/products/list/topproducts", + "geography_data":"https://storeapi.kobo.com/v2/configuration/geography/country", + "bam":"https://storeapi.kobo.com/v2/activity/bam/success", + "tracking":"https://storeapi.kobo.com/v2/tracking/searchperformed", + "personalizedrecommendations":"https://storeapi.kobo.com/v2/users/personalizedrecommendations", + "ereaderdevices":"https://storeapi.kobo.com/v2/products/EReaderDeviceFeeds", + "contributorsv2":"https://storeapi.kobo.com/v2/contributors/author", + "productsv2":"https://storeapi.kobo.com/v2/products", + "productstatebyslug":"https://storeapi.kobo.com/v2/products/itemState/{ProductType}/{Slug}", + "productstatebyid":"https://storeapi.kobo.com/v2/products/itemStateById/{ProductType}/{Id}", + "productbyslug":"https://storeapi.kobo.com/v2/products/itemDetail/{ProductType}/{Slug}", + "productbyid":"https://storeapi.kobo.com/v2/products/itemDetailById/{ProductType}/{Id}", + "categoriesv2":"https://storeapi.kobo.com/api/v2/Categories/Top", + "user_wishlist":"https://storeapi.kobo.com/v1/user/wishlist", + "user_platform":"https://storeapi.kobo.com/v1/user/platform", + "user_profile":"https://storeapi.kobo.com/v1/user/profile", + "user_linked_accounts":"https://storeapi.kobo.com/v1/user/linkedaccounts", + "get_download_link":"https://storeapi.kobo.com/v1/library/downloadlink", + "get_download_keys":"https://storeapi.kobo.com/v1/library/downloadkeys", + "checkout_borrowed_book":"https://storeapi.kobo.com/v1/library/borrow", + "library_sync":"https://storeapi.kobo.com/v1/library/sync", + "library_search":"https://storeapi.kobo.com/v1/library/search", + "library_items":"https://storeapi.kobo.com/v1/user/library", + "add_entitlement":"https://storeapi.kobo.com/v1/library/{RevisionIds}", + "delete_entitlement":"https://storeapi.kobo.com/v1/library/{Ids}", + "tags":"https://storeapi.kobo.com/v1/library/tags", + "autocomplete":"https://storeapi.kobo.com/v1/products/autocomplete", + "user_reviews":"https://storeapi.kobo.com/v1/user/reviews", + "user_ratings":"https://storeapi.kobo.com/v1/user/ratings", + "user_recommendations":"https://storeapi.kobo.com/v1/user/recommendations", + "taste_profile":"https://storeapi.kobo.com/v1/products/tasteprofile", + "fte_feedback":"https://storeapi.kobo.com/v1/products/ftefeedback", + "shelfie_recommendations":"https://storeapi.kobo.com/v1/user/recommendations/shelfie", + "recommendations":"https://storeapi.kobo.com/v1/products/bulk", + "featured_lists":"https://storeapi.kobo.com/v1/products/featured", + "daily_deal":"https://storeapi.kobo.com/v1/products/dailydeal", + "category":"https://storeapi.kobo.com/v1/categories/{CategoryId}", + "browse_history":"https://storeapi.kobo.com/v1/user/browsehistory", + "notifications_registration_issue":"https://storeapi.kobo.com/v1/notifications/registration", + "exchange_auth":"https://storeapi.kobo.com/v1/auth/exchange", + "rakuten_token_exchange":"https://storeapi.kobo.com/v1/auth/rakuten_token_exchange", + "device_auth":"https://storeapi.kobo.com/v1/auth/device", + "device_refresh":"https://storeapi.kobo.com/v1/auth/refresh", + "add_device":"https://storeapi.kobo.com/v1/user/add-device", + "get_tests_request":"https://storeapi.kobo.com/v1/analytics/gettests", + "post_analytics_event":"https://storeapi.kobo.com/v1/analytics/event", + "user_loyalty_benefits":"https://storeapi.kobo.com/v1/user/loyalty/benefits", + "user_loyalty_membership":"https://storeapi.kobo.com/v1/user/loyalty/membership", + "redeem_loyalty_points":"https://storeapi.kobo.com/v1/user/loyalty/redeem", + "patch_user_linked_accounts":"https://storeapi.kobo.com/v1/user/linkedaccounts/{Id}", + "delete_user_linked_accounts":"https://storeapi.kobo.com/v1/user/linkedaccounts/{Id}", + "reading_state":"https://storeapi.kobo.com/v1/library/{Ids}/state", + "library_metadata":"https://storeapi.kobo.com/v1/library/{Ids}/metadata", + "update_accessibility_to_preview":"https://storeapi.kobo.com/v1/library/{EntitlementIds}/preview", + "rename_tag":"https://storeapi.kobo.com/v1/library/tags/{TagId}", + "delete_tag":"https://storeapi.kobo.com/v1/library/tags/{TagId}", + "user_currencyconversion":"https://storeapi.kobo.com/v1/user/currency/convert", + "quickbuy_create":"https://storeapi.kobo.com/v1/store/quickbuy/purchase", + "audiobook_purchase_withcredit":"https://storeapi.kobo.com/v1/store/audiobook/{Id}", + "product_reviews":"https://storeapi.kobo.com/v1/products/{ProductIds}/reviews", + "review":"https://storeapi.kobo.com/v1/products/reviews/{ReviewId}", + "product_recommendations":"https://storeapi.kobo.com/v1/products/{ProductId}/recommendations", + "product_nextread":"https://storeapi.kobo.com/v1/products/{ProductIds}/nextread", + "product_prices":"https://storeapi.kobo.com/v1/products/{ProductIds}/prices", + "book":"https://storeapi.kobo.com/v1/products/books/{ProductId}", + "audiobook":"https://storeapi.kobo.com/v1/products/audiobooks/{ProductId}", + "book_subscription":"https://storeapi.kobo.com/v1/products/books/subscriptions", + "related_items":"https://storeapi.kobo.com/v1/products/{Id}/related", + "featured_list":"https://storeapi.kobo.com/v1/products/featured/{FeaturedListId}", + "category_featured_lists":"https://storeapi.kobo.com/v1/categories/{CategoryId}/featured", + "category_products":"https://storeapi.kobo.com/v1/categories/{CategoryId}/products", + "delete_tag_items":"https://storeapi.kobo.com/v1/library/tags/{TagId}/items/delete", + "review_sentiment":"https://storeapi.kobo.com/v1/products/reviews/{ReviewId}/sentiment/{Sentiment}", + "library_prices":"https://storeapi.kobo.com/v1/user/library/previews/prices", + "library_book":"https://storeapi.kobo.com/v1/user/library/books/{LibraryItemId}", + "tag_items":"https://storeapi.kobo.com/v1/library/tags/{TagId}/Items", + "quickbuy_checkout":"https://storeapi.kobo.com/v1/store/quickbuy/{PurchaseId}/checkout", + "rating":"https://storeapi.kobo.com/v1/products/{ProductId}/rating/{Rating}", + "authorproduct_recommendations":"https://storeapi.kobo.com/v1/products/books/authors/recommendations", + "external_book":"https://storeapi.kobo.com/v1/products/books/external/{Ids}", + "remaining_book_series":"https://storeapi.kobo.com/v1/products/books/series/{SeriesId}", + "audiobook_preview":"https://storeapi.kobo.com/v1/products/audiobooks/{Id}/preview", + "content_access_book":"https://storeapi.kobo.com/v1/products/books/{ProductId}/access", + "products":"https://storeapi.kobo.com/v1/products", + "categories":"https://storeapi.kobo.com/v1/categories", + "funnel_metrics":"https://storeapi.kobo.com/v1/funnelmetrics", + "deals":"https://storeapi.kobo.com/v1/deals", + "configuration_data":"https://storeapi.kobo.com/v1/configuration", + "assets":"https://storeapi.kobo.com/v1/assets", + "affiliaterequest":"https://storeapi.kobo.com/v1/affiliate", + "notebooks":"https://storeapi.kobo.com/api/internal/notebooks", + "image_host":"//cdn.kobo.com/book-images/", + "store_host":"www.kobo.com", + "store_home":"www.kobo.com/{region}/{language}", + "social_authorization_host":"https://social.kobobooks.com:8443", + "social_host":"https://social.kobobooks.com", + "reading_services_host":"https://readingservices.kobo.com", + "discovery_host":"https://discovery.kobobooks.com", + "oauth_host":"https://oauth.kobo.com", + "eula_page":"https://www.kobo.com/termsofuse?style=onestore", + "password_retrieval_page":"https://www.kobo.com/passwordretrieval.html", + "store_search":"https://www.kobo.com/{region}/{language}/Search?Query={query}", + "store_top50":"https://www.kobo.com/{region}/{language}/ebooks/Top", + "store_newreleases":"https://www.kobo.com/{region}/{language}/List/new-releases/961XUjtsU0qxkFItWOutGA", + "privacy_page":"https://www.kobo.com/privacypolicy?style=onestore", + "terms_of_sale_page":"https://authorize.kobo.com/{region}/{language}/terms/termsofsale", + "book_detail_page":"https://www.kobo.com/{region}/{language}/ebook/{slug}", + "book_detail_page_rakuten":"http://books.rakuten.co.jp/rk/{crossrevisionid}", + "book_landing_page":"https://www.kobo.com/ebooks", + "magazine_landing_page":"https://www.kobo.com/emagazines", + "purchase_buy":"https://www.kobo.com/checkoutoption/", + "purchase_buy_templated":"https://www.kobo.com/{region}/{language}/checkoutoption/{ProductId}", + "love_points_redemption_page":"https://www.kobo.com/{region}/{language}/KoboSuperPointsRedemption?productId={ProductId}", + "categories_page":"https://www.kobo.com/ebooks/categories", + "redeem_interstitial_page":"https://www.kobo.com", + "love_dashboard_page":"https://www.kobo.com/{region}/{language}/kobosuperpoints", + "help_page":"https://www.kobo.com/help", + "image_url_template":"https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/false/image.jpg", + "image_url_quality_template":"https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/{Quality}/{IsGreyscale}/image.jpg", + "overdrive_account":"https://auth.overdrive.com/account", + "overdrive_library":"https://{libraryKey}.auth.overdrive.com/library", + "overdrive_library_finder_host":"https://libraryfinder.api.overdrive.com", + "overdrive_thunder_host":"https://thunder.api.overdrive.com", + "customer_care_live_chat":"https://v2.zopim.com/widget/livechat.html?key=Y6gwUmnu4OATxN3Tli4Av9bYN319BTdO", + "audiobook_landing_page":"https://www.kobo.com/{region}/{language}/audiobooks", + "userguide_host":"https://ereaderfiles.kobo.com", + "dictionary_host":"https://ereaderfiles.kobo.com", + "audiobook_detail_page":"https://www.kobo.com/{region}/{language}/audiobook/{slug}", + "wishlist_page":"https://www.kobo.com/{region}/{language}/account/wishlist", + "audiobook_subscription_orange_deal_inclusion_url":"https://authorize.kobo.com/inclusion", + "giftcard_redeem_url":"https://www.kobo.com/{storefront}/{language}/redeem", + "giftcard_epd_redeem_url":"https://www.kobo.com/{storefront}/{language}/redeem-ereader", + "account_page":"https://www.kobo.com/account/settings", + "account_page_rakuten":"https://my.rakuten.co.jp/", + "pocket_link_account_start":"https://authorize.kobo.com/{region}/{language}/linkpocket", + "client_authd_referral":"https://authorize.kobo.com/api/AuthenticatedReferral/client/v1/getLink", + "subs_management_page":"https://www.kobo.com/{region}/{language}/account/subscriptions", + "subs_landing_page":"https://www.kobo.com/{region}/{language}/plus", + "subs_purchase_buy_templated":"https://www.kobo.com/{region}/{language}/Checkoutoption/{ProductId}/{TierId}", + "subs_plans_page":"https://www.kobo.com/{region}/{language}/plus/plans", + "sign_in_page":"https://auth.kobobooks.com/ActivateOnWeb", + "more_sign_in_options":"https://authorize.kobo.com/signin?returnUrl=https://kobo.com/#allProviders", + "registration_page":"https://authorize.kobo.com/signup?returnUrl=https://kobo.com/", + "facebook_sso_page":"https://authorize.kobo.com/signin/provider/Facebook/login?returnUrl=https://kobo.com/", + "provider_external_sign_in_page":"https://authorize.kobo.com/ExternalSignIn/{providerName}?returnUrl=https://kobo.com/", + "free_books_page":{ + "EN":"https://www.kobo.com/{region}/{language}/p/free-ebooks", + "FR":"https://www.kobo.com/{region}/{language}/p/livres-gratuits", + "IT":"https://www.kobo.com/{region}/{language}/p/libri-gratuiti", + "NL":"https://www.kobo.com/{region}/{language}/List/bekijk-het-overzicht-van-gratis-ebooks/QpkkVWnUw8sxmgjSlCbJRg", + "PT":"https://www.kobo.com/{region}/{language}/p/livros-gratis" + }, + "blackstone_header":{ + "key":"x-amz-request-payer", + "value":"requester" + }, + "use_one_store":"True", + "kobo_superpoints_enabled":"True", + "kobo_subscriptions_enabled":"True", + "kobo_onestorelibrary_enabled":"False", + "kobo_nativeborrow_enabled":"True", + "kobo_audiobooks_enabled":"True", + "kobo_audiobooks_subscriptions_enabled":"False", + "kobo_audiobooks_credit_redemption":"False", + "kobo_audiobooks_orange_deal_enabled":"False", + "kobo_wishlist_enabled":"True", + "kobo_shelfie_enabled":"False", + "kobo_redeem_enabled":"True", + "kobo_dropbox_link_account_enabled":"False", + "kobo_display_price":"True", + "kobo_google_tax":"False", + "kobo_googledrive_link_account_enabled":"False", + "kobo_onedrive_link_account_enabled":"False", + "kobo_shopping_cart_enabled":"False", + "kobo_privacyCentre_url":"https://www.kobo.com/privacy", + "gpb_flow_enabled":"False", + "ppx_purchasing_url":"https://purchasing.kobo.com", + "createpurchaseifallowed_url":"https://www.kobo.com/checkout/createpurchaseifallowed", + "elabel_url":"https://ereaderfiles.kobo.com/elabels/", + "display_parental_controls_enabled":"False", + "display_accessibility_enabled":"False", + "text_to_speech_region_override":"False", + "reflowable_page_cache_enabled":"True", + "fixed_layout_page_cache_enabled":"True", + "optimus_enabled":"False", + "instapaper_enabled":"True", + "instapaper_link_account_start":"https://authorize.kobo.com/{region}/{language}/linkinstapaper", + "instapaper_env_url":"https://www.instapaper.com/api/kobo" +} \ No newline at end of file