Tutorial Whatsapp API ( URL for HTML )

Alex

Administrator
Dev
Messages
2,373
Points
707
Hola a todos,

Seguramente habréis visto en algún lugar, que indica poner sur WhatsApp API , lo que significa la URL de su WhatsApp, pero que al darle click en la imagen, redireccione directamente hacia el numero de teléfono de WhatsApp y se pueda mandar un mensaje.

Vamos alla, la URL WhatsApp api es la siguiente:
Code:
https://api.whatsapp.com/send?phone=NUMEROTELEFONO&text=hello%20i%20need%20help.&source=&data=&app_absent=

Donde esta indicado NUMEROTELEFONO, debe de incluir su teléfono con el código indicativo de su pais, es decir, ejemplo es de España, tenemos el +34, seguido de 9 cifras, entonces el ejemplo seria 34685457451 lo que daría:

Code:
https://api.whatsapp.com/send?phone=34685457451&text=hello%20i%20need%20help.&source=&data=&app_absent=

Ahora, si queréis modificar el texto que mandara automáticamente a ese numero de teléfono una vez pinchado en ' continuar la conversación ', sera la parte de:
Code:
=hello%20i%20need%20help.&
Empieza en el = y termina en el &.
Entonces, para escribir una frase con espacios, cada espacio se representara por
Code:
%20
Lo que significa que si queremos decir, Hola buenos dias, seria:
Code:
=hola%20buenos%20dias.&

Ya esta, ahora si tienen un widget en sur pagina pueden ponerle esa API, que quizás ya la tengáis preconfigurada faltaría nada mas modificarla.

Para probarlo es muy simple,
Pinchar en este link y saldrá el numero del ejemplo con el texto:
 

Tibia Server Lists

#1 FEATURED US Ultron OT 1,371 / 5,000 EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.7 -11% VOTES1 #2 FEATURED US Nefera 0 / 0 EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.4 -48% VOTES0 #3 FEATURED BR RebornOT 1 / 1,000 EXPx999 PROTO15.20 ENGINECrystal RANK PTS4.4 +100% VOTES1 #4 FEATURED ES Deixis 0 / 0 EXPStages PROTO1098 ENGINETFS RANK PTS4.1 -85% VOTES1 #5 DE DBU Online 109 / 400 EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS6.0 -19% VOTES0 #6 BR Tibinha YurOts 33 / 150 EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.7 +35% VOTES0 #7 US Wiki Ots 51 / 1,000 EXPx9999 PROTOcustom client ENGINETFS 1.4.2 RANK PTS5.6 -3% VOTES0 #8 MX Marlboro War 15 / 300 EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.4 -39% VOTES0 #9 CL ZHYRAVEX 19 / 500 EXPx5 PROTO10.98 ENGINETFS 1.4.2 RANK PTS5.2 +229% VOTES1 #10 US Halera 5 / 1,000 EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS5.1 +45% VOTES0 #11 ES JustRL FreeTC 1530 25 / 250 EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS5.1 -25% VOTES0 #12 PL Lubelski 0 / 1,000 EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.8 +1% VOTES0 #13 PL ReWar 0 / 2,000 EXPcustom PROTO8.6 ENGINEOther RANK PTS4.5 -86% VOTES0 #14 BR Exordion Legacy 0 / 2,000 EXPx2 PROTO7.72 ENGINEExordion RANK PTS4.4 -43% VOTES0 #15 BR Rethoria OpenToday 7.4 Custom 6 / 0 EXPx10 PROTO10.98 ENGINEOther RANK PTS4.4 +100% VOTES0 #16 US BerethaOnline 0 / 2,000 EXPStages PROTO15.0 ENGINETFS RANK PTS4.4 -99% VOTES0 #17 BR T2OT Celular e Navegador 128 / 2,000 EXP5x (stages, 0.8x at level 2000) PROTO15.32 ENGINECanary RANK PTS4.3 +100% VOTES1 #18 ES Farlia Global 2026 0 / 333 EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS4.1 0% VOTES0 #19 SE MortalisOT Custom 0 / 500 EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS4.1 0% VOTES0 #20 BR Turion Server 0 / 2,000 EXPx1 PROTO7.4 ENGINETurion 7.7 Project RANK PTS4.0 -100% VOTES0 #21 RU Oldavia | 8.60 0 / 0 EXPx9999 PROTO8.6 ENGINETFS 1.3 RANK PTS4.0 -100% VOTES0 #22 US MasterRunes 0 / 1,000 EXPx10 PROTO15.20 ENGINECanary 3.x RANK PTS4.0 +100% VOTES0 #23 ES tibiarl2.ddns.net 3 / 900 EXPx3 PROTO15.20 ENGINECanary 3.x RANK PTS3.8 +100% VOTES0 #24 US Rommania 0 / 3,000 EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.7 -7% VOTES0 #25 MX Maeli 2 / 150 EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.6 -62% VOTES0 #26 ES DarkDragon EXPx10 PROTO8.6 ENGINECanary RANK PTS0.0 0% VOTES0
Top