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

@fs-open-source/amity-nodejs-sdk

v1.0.8

Published

Wrapper for Amity API as a NodeJS SDK

Downloads

5

Readme

NODEJS SDK for AMITY SOCIAL API

SDK Logo

Welcome to the unofficial NODEJS SDK repository! This SDK is designed to simplify the integration and interaction with the AMITY SOCIAL REST API. It provides an easy-to-use set of functions and classes that abstract away the complexities of making API requests, handling responses, and managing authentication.

Table of Contents

Supported APIs

Below is a table with a key of the supported API functions covered in this SDK and the key that matches it. |Functions |Supported | | :--- | :---: | |Authentication|Full| |Follow|Partial| |Community|Partial| |UsersV3|Partial| |Sessions|Full|

Updated info on what APIs we currently support will be available in our latest releases

Installation

To get started with the AMITY SOCIAL SDK, you can simply install it using npm (https://en.wikipedia.org/wiki/Npm). Here's how you can do it using [example package manager]:

npm install @fs-open-source/amity-nodejs-sdk

Or if you're using yarn:

yarn add @fs-open-source/amity-nodejs-sdk

Usage

Using the AMITY SOCIAL SDK in your project is straightforward. First, import the SDK into your code:

const { AmityClient } = requir('@fs-open-source/amity-nodejs-sdk');

Authentication

Before you start making API requests, you'll need to set up authentication. The AMITY SOCIAL SDK supports various authentication methods, including API keys and OAuth tokens. The following list of environment variables need to be set for access to APIs requiring secure tokens.

X_SERVER_KEY
AMITY_BEARER_TOKEN
AMITY_API_KEY

Please refer to our official documentation for Amity (https://api-docs.amity.co/) more information on authentication methods and how to set them up.

Examples

Creating user token for authentication

// Creating user info
const userId = '123456';
const resource = await AmityClient.Authentication.getAuthenticationToken(userId);
console.log('Resource:', resource);

Contributing

We welcome contributions from the community! If you'd like to contribute to the AMITY SOCIAL SDK, please follow these steps:

  1. Fork the repository and create a new branch.
  2. Make your changes, add new features, or fix issues.
  3. Write tests to cover your changes if applicable.
  4. Submit a pull request explaining your changes and their benefits.

License

This SDK is released under the [Your License Name] License. See LICENSE for more details.


If you have any questions, feel free to contact us at through email here or visit our website https://farosoft.io. We're here to help!