Jump to content

Search the Community

Showing results for tags 'whatsapp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Delphi Questions and Answers
    • Algorithms, Data Structures and Class Design
    • VCL
    • FMX
    • RTL and Delphi Object Pascal
    • Databases
    • Network, Cloud and Web
    • Windows API
    • Cross-platform
    • Delphi IDE and APIs
    • General Help
    • Delphi Third-Party
  • C++Builder Questions and Answers
    • General Help
  • General Discussions
    • Embarcadero Lounge
    • Tips / Blogs / Tutorials / Videos
    • Job Opportunities / Coder for Hire
    • I made this
  • Software Development
    • Project Planning and -Management
    • Software Testing and Quality Assurance
  • Community
    • Community Management

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Delphi-Version

Found 1 result

  1. Hello. I need to send a PDF file to a WhatsApp recipient using WhatsApp Cloud API. Can someone help me translate this WhatsApp sample curl code to Delphi pascal? Here is the code from the WhatsApp documentation: Step1: Upload media to cloud API. curl -X POST \ 'https://graph.facebook.com/v15.0/FROM_PHONE_NUMBER_ID/media' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -F 'file=@/local/path/file.jpg;type=image/jpeg' -F 'messaging_product=whatsapp' A successful response includes an object with an identifier for the media: { "id":"ID" } Step 2: Send message using media ID. curl -X POST \ 'https://graph.facebook.com/v15.0/FROM-PHONE-NUMBER-ID/messages' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE-NUMBER", "type": "image", "image": { "id" : "MEDIA-OBJECT-ID" } }' I’m using Delphi RIO 10.3 Thank you in advance
×