1.0.3 • Published 6 years ago

gomoodboard-api v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

gomoodboard-api

Build Status npm

Unofficial API package for GoMoodboard

This is very lean package that scrapes the website of the board you request. Then passes all of the images on the board in JSON format as a promise.

:warning: This package could break anytime. It is NOT officially supported.

Table of Contents

Install

npm install gomoodboard-api

Usage

.getBoard(boardId: String): Promise

Get a board in a structured format. You can get the board ID from the gomoodboard board url. (In some cases you'll need to add /share after ID as <boardId>/share to make it work properly)

const GomoodboardApi = require('gomoodboard-api');

GomoodboardApi.getBoard('pjK9oD41').then((data) => {
  // Your code
});

The data object structure is following.

[
  {
    "image": {
      "id": 12442816,
      "name": null,
      "comment": "",
      "viewable": null,
      "filepath": "/gomoodboard.com/production%2F1407439227897-rvbul86dbhloko6r-7a4f0193115d2d804696b560775573f4%2Fexposure-12.jpg",
      "full": "http://d1lfunetf0rx3e.cloudfront.net/production%2F1407439227897-rvbul86dbhloko6r-7a4f0193115d2d804696b560775573f4%2Fexposure-12.jpg",
      "order_position": null,
    }
  }
]

Contributors

NameWebsite
Ondřej Bártahttp://ondrejbarta.xyz

License

MIT © Ondřej Bárta

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago