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 - npm Package Compare versions

Comparing version 0.1.0-1 to 0.1.0-2

2

package.json
{
"name": "messaging-api-messenger",
"description": "Messaging API client for Messenger",
"version": "0.1.0-1",
"version": "0.1.0-2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

# messaging-api-messenger
> Messaging API client for Messenger
## Installation
```sh
npm i --save messaging-api-messenger
```
or
```sh
yarn add messaging-api-messenger
```
## Usage
### Initialize
```js
import { MessengerClient } from 'messaging-api-line';
// get accessToken from facebook developers website
const client = MessengerClient.factory(accessToken);
```
### API
```js
await client.sendText(recipientId, text, options);
```
or
```js
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`
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