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.0-2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.2K
increased by21.08%
Maintainers
2
Weekly downloads
 
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
});

Allowed Methods

User

  • getUserProfile

Send API

  • sendRawBody
  • send
  • sendAttachment
  • sendText
  • sendIssueResolutionText
  • sendAudio
  • sendImage
  • sendVideo
  • sendFile
  • sendTemplate
  • sendButtonTemplate
  • sendGenericTemplate
  • sendShippingUpdateTemplate
  • sendReservationUpdateTemplate
  • sendIssueResolutionTemplate
  • sendListTemplate
  • sendReceiptTemplate
  • sendAirlineBoardingPassTemplate
  • sendAirlineCheckinTemplate
  • sendAirlineItineraryTemplate
  • sendAirlineFlightUpdateTemplate
  • sendQuickReplies
  • sendSenderAction
  • turnTypingIndicatorsOn
  • turnTypingIndicatorsOff

Upload API

  • uploadAttachment
  • uploadAudio
  • uploadImage
  • uploadVideo
  • uploadFile

Messenger Platform

Messenger Profile
  • getMessengerProfile
  • setMessengerProfile
  • deleteMessengerProfile
Get Started Button
  • getGetStartedButton
  • setGetStartedButton
  • deleteGetStartedButton
Persistent Menu
  • getPersistentMenu
  • setPersistentMenu
  • deletePersistentMenu
Greeting Text
  • getGreetingText
  • setGreetingText
  • deleteGreetingText
Domain Whitelist
  • getDomainWhitelist
  • setDomainWhitelist
  • deleteDomainWhitelist
Account Linking URL
  • getAccountLinkingURL
  • setAccountLinkingURL
  • deleteAccountLinkingURL
Payment Settings
  • getPaymentSettings
  • setPaymentPrivacyPolicyURL
  • setPaymentPublicKey
  • setPaymentTestUsers
  • deletePaymentSettings
Target Audience
  • getTargetAudience
  • setTargetAudience
  • deleteTargetAudience

Keywords

FAQs

Package last updated on 12 May 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