Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

one_msg_waba_sdk_ts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one_msg_waba_sdk_ts

OpenAPI client for one_msg_waba_sdk_ts

  • 2.39.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

one_msg_waba_sdk_ts@2.39.2

OneMsgWabaSdk - TypeScript client for one_msg_waba_sdk_ts 1MSG.IO is the perfect WhatsApp management tool for your business. With us you get full access to the official Whatsapp API/webhooks.

Every API request must contain an Authorize HTTP header with a token. This is your channel token, which can be found in your channel project on your profile page. Please do not give the token to anyone or post it publicly.

The authorization token must be added to each request in the GET parameter 'token' and always passed to query string (?token={your_token}). Parameters in GET queries pass query string. Parameters in POST requests — through the JSON-encoded request body.

All 'send' methods (except /sendTemplate) will only work when the dialog session with the user is open. Some of our solutions simplify and avoid such limitations, but we urge you to pay more attention to this detail This SDK is automatically generated by the OpenAPI Generator project:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Installation

npm

install it via:

npm install one_msg_waba_sdk_ts --save

Getting Started

Please follow the installation instruction and execute the following code:

import * as OneMsgWabaSdk from 'one_msg_waba_sdk_ts'

OneMsgWabaSdk.DefaultConfig.config = {
  basePath: 'https://api.1msg.io/YOUR_INSTANCE_NUMBER/', // override base path
  apiKey: 'YOUR_TOKEN_KEY_FOR_INSTANCE' // parameter for apiKey security
}

let channelApi = new OneMsgWabaSdk.ChannelApi()
channelApi.getMe().then(function (data) {
  console.log('API called successfully. Returned data: ', data);
}, function (error) {
  console.error(error);
});

Documentation

For better understanding of parameters you can refer to our Documentation

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc