Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vonage): vonage v1 #338

Merged
merged 15 commits into from
Feb 4, 2022
Merged

feat(vonage): vonage v1 #338

merged 15 commits into from
Feb 4, 2022

Conversation

samuelmasse
Copy link
Contributor

@samuelmasse samuelmasse commented Feb 3, 2022

Upgrades vonage to use the messages api 1.0 instead of 0.1. There is no longer two webhooks and both inbound and status come in at /vonage. The amount of configuration required as also been severely reduced (only apiKey, apiSecret, and signatureSecret).

Added interactive messages for quick replies

TODO:

  • add reception for all content types.
  • possibly use interactive messages for carousels
  • add typings

Closes DEV-2278

@linear
Copy link

linear bot commented Feb 3, 2022

DEV-2278 Vonage

@samuelmasse samuelmasse marked this pull request as ready for review February 4, 2022 02:39
@samuelmasse
Copy link
Contributor Author

Note: video seems to not work despite sending the correct payload

packages/channels/package.json Show resolved Hide resolved
packages/channels/src/vonage/README.md Show resolved Hide resolved
packages/channels/src/vonage/api.ts Show resolved Hide resolved
packages/channels/src/vonage/config.ts Show resolved Hide resolved
@samuelmasse
Copy link
Contributor Author

We can use this to test vonage templates :

  {
    "type": "vonage-template",
    "namespace": "9b6b4fcb_da19_4a26_8fe8_78074a91b584",
    "name": "verify",
    "parameters": ["yo", "bla", "cra"]
  },
  {
    "type": "vonage-media-template",
    "namespace": "9b6b4fcb_da19_4a26_8fe8_78074a91b584",
    "name": "sandbox_travel_boardingpass",
    "header": {
      "parameters": [
        {
          "type": "image",
          "image": {
            "link": "https://upload.wikimedia.org/wikipedia/commons/a/a1/Mallard2.jpg"
          }
        }
      ]
    },
    "body": {
      "parameters": [
        {
          "type": "text",
          "text": "Value 1"
        },
        {
          "type": "text",
          "text": "Value 2"
        },
        {
          "type": "text",
          "text": "Value 3"
        },
        {
          "type": "text",
          "text": "Value 4"
        }
      ]
    }
  }

@samuelmasse
Copy link
Contributor Author

Note: video is sent correctly but is not displayed

@samuelmasse samuelmasse merged commit c8436d2 into master Feb 4, 2022
@samuelmasse samuelmasse deleted the sm-vonage-v1 branch February 4, 2022 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants