Skip to content

Instantly share code, notes, and snippets.

@pikami
Created June 9, 2019 15:25
Show Gist options
  • Save pikami/f0b667e351891b4d157a3fdd3fda2cf7 to your computer and use it in GitHub Desktop.
Save pikami/f0b667e351891b4d157a3fdd3fda2cf7 to your computer and use it in GitHub Desktop.
Nimses API

Nimses API

Headers to send:

"content-Type": "application/json"

Feed

Get posts made by user

  • URL: /api/feed/user
  • METHOD: GET
  • PARAMS:
id: User id
cursor: Page number
limit: Number of posts to get

Get information about a post

  • URL: /api/feed/post
  • METHOD: GET
  • PARAMS:
id: Post id

Get post comments

  • URL: /api/feed/comments
  • METHOD: GET
  • PARAMS:
postId: Post id
cursor: Page number
limit: Number of comments to get

Returns a list of users that nimed the post

  • URL: /api/feed/nimed-by
  • METHOD: GET
  • PARAMS:
postId: Post id
take: Number of users to get

Get post preview link

  • URL: /api/feed/first-link-parse
  • METHOD: GET
  • PARAMS:
postId: Post id

Profile

Get user profile

  • URL: /api/profile/:username
  • METHOD: GET

Get user limits

  • URL: /api/profile/limits
  • METHOD: GET
  • PARAMS:
id: User id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment