Socket
Socket
Sign inDemoInstall

@saysimple/node-sdk

Package Overview
Dependencies
161
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @saysimple/node-sdk

The official SaySimple Node SDK. Want to use our awesome customer conversations platform? Please visit: https://saysimple.com


Version published
Weekly downloads
30
decreased by-26.83%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

SaySimple SDK for JavaScript

We’re Saysimple — the Messaging Platform Pioneer — and we’re on a mission to change customer service centers into commercial profit centers. We’re turning social messaging channels that are used for personal communication into powerful communication channels for any kind of business, providing conversational excellence with unrivaled ease.

And this, is our SDK for JavaScript for you.

Installation

For NPM

npm i @saysimple/node-sdk

For Yarn

yarn add @saysimple/node-sdk

Usage

API Documentation 📑

The SDK is a one-on-one translation of the native REST API, which can be found here.
You can get a more in-depth knowledge of the API and the possible parameters if you read the API documentation.

Intelligence V1 👩🏻‍🔬

Initialization

const SaySimpleClient = require("@saysimple/node-sdk");
const Intelligence = SaySimpleClient.Intelligence.V1("[API TOKEN]", "[SECRET KEY]");
// Or:
const Intelligence = SaySimpleClient.Intelligence.Latest("[API TOKEN]", "[SECRET KEY]");  

If you omit a secret key, the SDK will assume you put a valid access token directly on the first parameter.

Functions

FunctionParameters
addMessageSee Add A Message in the API Docs
getMessagesSummedSee Total Messages Summed in the API Docs
getActiveContactsSummedSee Total Active Contacts in the API Docs
getActiveContactsDistributionSee Total Active Contacts Distribution in the API Docs
getSendPaidTemplatesSummedSee Total Paid Templates Sent in the API Docs
getAgentsSee List all Agents in the API Docs
getChannelsSee List all Channels in the API Docs
getTagsSee List all Tags in the API Docs
getTeamsSee List all Teams in the API Docs
getMessageDistributionSee Message Distribution in the API Docs
getConversationsResolvedSee Total Resolved Conversations in the API Docs
getConversationsResolveTimesAverageSee Get Conversations Resolve Times (Average) in the API Docs
getConversationsResolveTimesMedianSee Get Conversations Resolve Times (Median) in the API Docs
resolveConversationSee Resolve a Conversation in the API Docs
getConversationsFirstReplyTimesAverageSee Get Conversations Reply Times (Average) in the API Docs
getConversationsFirstReplyTimesMedianSee Get Conversations Reply Times (Median) in the API Docs
getConversationsFirstReplyTimesBusinessHoursAverageSee Get Conversations Reply Times During Business Hours (Average) in the API Docs
getConversationsFirstReplyTimesBusinessHoursMedianSee Get Conversations Reply Times During Business Hours (Median) in the API Docs
getConversationsMessagesAverageSee Average Messages per Conversation in the API Docs
getConversationsTagsUsedSee Conversations Tags Used in the API Docs
getMessagesResponseTimesAverageSee Response Times (Average) in the API Docs

To get all messages summed you can run the following code

const SaySimpleClient = require("@saysimple/node-sdk");
const Intelligence = SaySimpleClient.Intelligence.V1("[API TOKEN]", "[SECRET KEY]");

(async () => {
    const messagesSummed = await Intelligence.getMessagesSummed({
        agent: "agent@teddies.com"
    });

    console.log(messagesSummed);
})();

That's it! 🚀

Messaging V1 💌

Will be implemented as soon as possible.
For now please refer to the API documentation.

Showcasing 🎭

We are really keen to know what you build with SaySimple, so please do let us know when your project is up-and-running!

TypeScript support ⌨️

This package exports type declarations, thus it can be used in TypeScript projects without requiring extra dependencies.

Support 🧞

We tried to make the API and SDK as easy as possible, but maybe we didn't succeed on every aspect of it. Please don't hesitate to contact us if something is not working or is unclear.

You can reach us at: support@saysimple.nl.

Raising an issue 🤕

If you encounter a bug in this software we'd love to hear about it. So we can work on improving our SDK, and your developer experience.

Please be sure you've searched for the same problem in the tickets opened already. Also, it would be helpful if you can provide as many details as possible. Like the versions of the SDK and Node.js and how your (environment) set up is.

License 🕵🏽‍♀️

This software is distributed under the Apache License 2.0 license. See LICENSE.txt.

Copyright 2019 - 2021 Just Internet B.V. or its affiliates. All Rights Reserved.

Keywords

FAQs

Last updated on 14 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc