UNPKG

hn-api-sdk

Version:

HackerNews API with TypeScript, generated by tsdk

41 lines (40 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetChangedItemsAndProfilesConfig = exports.GetStoriesConfig = exports.GetMaxItemIdConfig = void 0; /** * Get the current largest item id. ({@link APIConfig}) * @category Category */ exports.GetMaxItemIdConfig = { type: "user", method: "get", path: "/v0/maxitem.json", description: "Get the current largest item id.", category: "live data", }; // --------- GetMaxItemId END --------- /** * Up to 200-500 stories, query `new/top/best/ask/show/job` stories ({@link APIConfig}) * @category live data */ exports.GetStoriesConfig = { type: "user", method: "get", path: "/v0/{type}stories.json", description: "Up to 200-500 stories, query `new/top/best/ask/show/job` stories", category: "live data", paramsInUrl: '{}' }; // --------- GetStories END --------- /** * Changed Items and Profiles ({@link APIConfig}) * @category live data */ exports.GetChangedItemsAndProfilesConfig = { type: 'user', method: 'get', path: '/v0/updates.json', description: 'Changed Items and Profiles', category: 'live data', }; // --------- GetChangedItemsAndProfiles END ---------