2.0.0 • Published 6 months ago

fizzl v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Fizzl API Node.js Client

Overview

This Node.js package provides a convenient way to interact with the Fizzl API. It includes methods to authenticate users, post messages, retrieve posts, get user profiles, and fetch specific user posts.

Installation

You can install the package using npm:

npm install fizzl

Usage

const fizzl = require('fizzl');

// Authentication
fizzl.authenticate(username, password)
  .then(response => {
    // Handle authentication response
    console.log(response.data);
  })
  .catch(error => {
    // Handle authentication error
    console.error(error);
  });

// Post a message
fizzl.postMessage(username, password, content)
  .then(response => {
    // Handle post message response
    console.log(response.data);
  })
  .catch(error => {
    // Handle post message error
    console.error(error);
  });

// Get the latest post
fizzl.getLatestPost(username, password)
  .then(response => {
    // Handle get latest post response
    console.log(response.data);
  })
  .catch(error => {
    // Handle get latest post error
    console.error(error);
  });

// Get all posts
fizzl.getAllPosts(username, password)
  .then(response => {
    // Handle get all posts response
    console.log(response.data);
  })
  .catch(error => {
    // Handle get all posts error
    console.error(error);
  });

// Get user profile
fizzl.getUserProfile(username, password, targetUsername)
  .then(response => {
    // Handle get user profile response
    console.log(response.data);
  })
  .catch(error => {
    // Handle get user profile error
    console.error(error);
  });

// Get user posts
fizzl.getUserPosts(username, password, targetUsername)
  .then(response => {
    // Handle get user posts response
    console.log(response.data);
  })
  .catch(error => {
    // Handle get user posts error
    console.error(error);
  });
2.0.0

6 months ago

1.4.0

6 months ago

1.3.0

6 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago