Skip to content

Sideko-Inc/sideko_hacker_news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sideko_hacker_news go

Hacker News makes the public their data available in near real time.

The v0 API is essentially a dump of our in-memory data structures. We know, what works great locally in memory isn't so hot over the network. Many of the awkward things are just the way HN works internally... It's not the ideal public API, but it's the one we could release in the time we had

This documentation and SDK libraries have been generated by Sideko which has no affiliation with Hacker News. Everything you see is generated from an OpenAPI specification.

Install and try the free beta SDK generator on our Github.

Authentication

import "github.com/Sideko-Inc/sideko_hacker_news"
client := sideko_hacker_news.NewClient()

get_ask_story_ids

List the latest Ask HN story IDs. Will return maximum 200 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetAskStoryIds(sideko_hacker_news.GetAskstoriesJsonRequest {  })

get_best_story_ids

List the best hacker news story IDs. Will return maximum 500 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetBestStoryIds(sideko_hacker_news.GetBeststoriesJsonRequest {  })

get_item

Stories, Comments, Jobs, Ask HNs and even Polls are all considered items, with slightly different structures (see the examples).

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetItem(sideko_hacker_news.GetItemIdJsonRequest { Id: 123 })

get_job_story_ids

List the latest Job story IDs. Will return maximum 200 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetJobStoryIds(sideko_hacker_news.GetJobstoriesJsonRequest {  })

get_max_item_id

The current largest item ID. Walking backwards from here allows you to list all items avialable through the API.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetMaxItemId(sideko_hacker_news.GetMaxitemJsonRequest {  })

get_new_story_ids

List the top hacker news story IDs. Will return maximum 500 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetNewStoryIds(sideko_hacker_news.GetNewstoriesJsonRequest {  })

get_show_story_ids

List the latest Show HN story IDs. Will return maximum 200 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetShowStoryIds(sideko_hacker_news.GetShowstoriesJsonRequest {  })

get_top_story_ids

List the top hacker news story IDs. Will return maximum 500 IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetTopStoryIds(sideko_hacker_news.GetTopstoriesJsonRequest {  })

get_updates

List recently updated item IDs and profile IDs.

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetUpdates(sideko_hacker_news.GetUpdatesJsonRequest {  })

get_user

Retrieves user metadata given the user ID (HN username).

Documentation & SDKs generated by Sideko from OpenAPI. Install and try the free beta SDK generator on our Github.

response, err := client.GetUser(sideko_hacker_news.GetUserIdJsonRequest { Id: "string" })

About

Generated Hacker News client SDK in golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages