npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tec6/node-red-humhub-services

v1.0.0

Published

A node providing the services offered by the RESTful API of Humhub.

Downloads

11

Readme

node-red-contrib-humhub-services

Platform npm Downloads MIT License

Implement your Node-RED flows with the services proposed by the RESTful API of Humhub.

Warning: Beta version - Humhub-services will change in the next releases!

The REST API module provides a generic interface to various subsystems of the HumHub platform.

Requirements

Ensure you created an Humhub account in order to correctly configure your credentials, either by login/password or with API token/key.

Creating a post (POST method)

To create a post, you'll need the container's id in which you want to have your post. GET method can get you the container id of a particular post.

Updating a post (PUT method)

To update a post, you'll need the id of the post you want to change. GET method can get you the id of a particular post.

Deleting a post (DELETE method)

To delete a post, you'll need the id of the post you want to erase. GET method can get you the id of a particular post.

Getting one or many post (GET method)

To get all the posts, you can set no filter. If you want to have only some, you can set as many filters as you need. Filters have only few conditions to examine and compare, they'll be enhanced in subsequent versions.

Uploading a file (POST method)

To upload a file on a post, you'll need the post's id in which you want to have your file. Posts GET method can get you the id of a particular post. You'll also need to provide the full path of your file.

Downloading a file (GET method)

To download a file, you'll need it's id. You'll also need to provide the full path of where you want to create your file. The extension will be auto generated from the mime-type of your file.

Creating a comment (POST method)

To create a comment, you'll need the post's id in which you want to have your comment. You'll write it in the "message" property.

Updating a comment (PUT method)

To update a comment, you'll need its id. You'll write the updated comment in the "message" property.

Deleting a comment (DELETE method)

To delete a post, you'll need the id of the post you want to erase.

Getting one or many comment (GET method)

To get the comments you'll need to provide an Id, either one of a particular comment, or one of a post, or one of a content.

Creating a topic (POST method)

To create a topic, you'll need the container's id in which you want to have your topic. You'll also need to provide its name.

Updating a topic (PUT method)

To update a topic, you'll need its id. You'll write the updated topic in the "new name" property.

Deleting a topic (DELETE method)

To delete a topic, you'll need the id of the topic you want to erase.

Getting one or many topics (GET method)

To get the topics you can provide an Id, either one of a particular topic, or one of a container, you can also choose to get all the topics without providing any id.

Installation

In order to set an API access go to `Administration -> Modules on your Humhub account.

humhub1

humhub2

Then install the restful API module, and click on configure in order to set an access with basic authentification or bearer token.

humhub3

Under "General" choose to allow the access method you want to use.

humhub4

If you want to setup an access via bearer token, generate one in the "Bearer Auth" tab, and provide your account as an authorized user. Then you'll just have to add your token in your credentials node.

humhub5