* * *

Author Topic: Whatsapp api  (Read 1253 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 1712
Whatsapp api
« on: April 13, 2018, 04:52:42 pm »
Hi guys, has anyone ever implemented the "Click to chat" button of whatsapp in a lazarus application? So open whatsapp parametrized as you can do for web pages or in android.

The only documentation I found is: https://faq.whatsapp.com/it/android/26000030/?category=5245251&lang=en

In your opinion, is it feasible?
Ubuntu and Mac
Lazarus: 1.8.0
FPC: 3.0.4

xinyiman

  • Hero Member
  • *****
  • Posts: 1712
Re: Whatsapp api
« Reply #1 on: April 16, 2018, 08:34:44 am »
no suggestion?
Ubuntu and Mac
Lazarus: 1.8.0
FPC: 3.0.4

rvk

  • Hero Member
  • *****
  • Posts: 3462
Re: Whatsapp api
« Reply #2 on: April 16, 2018, 08:45:48 am »
In your opinion, is it feasible?
You have found the documentation.
So what is your experience?

(Are you having problems with it?)

xinyiman

  • Hero Member
  • *****
  • Posts: 1712
Re: Whatsapp api
« Reply #3 on: April 16, 2018, 08:56:15 am »
Yes, the documentation works well, if launched from a browser. Because he asks if you want to open it with whatsapp for desktop. I would like to create a lazarus button that opens whatsapp for desktop and parametrizes with the bees. I would like to bypass the browser.
Ubuntu and Mac
Lazarus: 1.8.0
FPC: 3.0.4

rvk

  • Hero Member
  • *****
  • Posts: 3462
Re: Whatsapp api
« Reply #4 on: April 16, 2018, 10:11:43 am »
Not sure if this is possible (without pressing the button) on Windows/Desktop.

On Android you can use intent or even the whatsapp Custom URL Scheme whatsapp://send?text=.
https://faq.whatsapp.com/en/android/28000012

On Windows/Desktop you wouldn't even know if Whatsapp is connected to the browser or even if the user maybe uses the Windows App from the Store.

(For me the https page opened up Whatsapp for Web while I have the store-version installed and coupled. So it wouldn't even be of use for me to have a web-page button, or do what Whatsapp is doing with that button)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus