New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

messaging-api-messenger

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

messaging-api-messenger

Messaging API client for Messenger

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

messaging-api-messenger

Messaging API client for Messenger

Installation

npm i --save messaging-api-messenger

or

yarn add messaging-api-messenger

Usage

Initialize

import { MessengerClient } from 'messaging-api-line';

// get accessToken from facebook developers website
const client = MessengerClient.factory(accessToken);

API

await client.sendText(recipientId, text, options);

or

client.sendText(recipientId, text, options).then(() => {
  // do something
});

Supported Methods

All methods return a Promise resolves an API response.

User

  • getUserProfile

Send API

Official docs
Content types

Upload API

Official docs

  • uploadAttachment
  • uploadAudio
  • uploadImage
  • uploadVideo
  • uploadFile

Messenger Platform

Official docs

Messenger Profile
  • getMessengerProfile
  • setMessengerProfile
  • deleteMessengerProfile
Get Started Button

Official docs

  • getGetStartedButton
  • setGetStartedButton
  • deleteGetStartedButton
Persistent Menu

Official docs

  • getPersistentMenu
  • setPersistentMenu
  • deletePersistentMenu
Greeting Text

Officail docs

  • getGreetingText
  • setGreetingText
  • deleteGreetingText
Domain Whitelist

Official docs

  • getDomainWhitelist
  • setDomainWhitelist
  • deleteDomainWhitelist
Account Linking URL

Official docs

  • getAccountLinkingURL
  • setAccountLinkingURL
  • deleteAccountLinkingURL
Payment Settings

Official docs

  • getPaymentSettings
  • setPaymentPrivacyPolicyURL
  • setPaymentPublicKey
  • setPaymentTestUsers
  • deletePaymentSettings
Target Audience

Official docs

  • getTargetAudience
  • setTargetAudience
  • deleteTargetAudience

Keywords

FAQs

Package last updated on 22 Jun 2017

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