خدمة الربط البرمجي عبر whatsapp Api

خدمة الربط البرمجي عبر whatsapp Api

خدمة الربط الالكتروني


بعد إطلاق منصة تو واتس في السوق، لاحظنا بشكل ملحوظ وجود حاجة قوية لخدمة الـ API (واجهة برمجة التطبيقات). ولذلك في حال كنت تمتلك تطبيق أو برنامج ما أو حتى موقع الكتروني وترغب في ربطه مع خدمة رسائل WhatsApp - سواء للتواصل مع العملاء المخزنين في قاعدة البيانات الخاصة بك أو لإرسال رسائل تفعيل عضوية أو غير ذلك - يمكنك القيام بذلك بكل سهولة من خلال خدمة بوابة الإرسال WhatsApp API.

توفر هذه الخدمة إمكانية الربط بسهولة بين تطبيقك أو موقعك وبوابة الإرسال لدينا، بغض النظر عن لغة البرمجة المستخدمة، لتحصل على خدمة رسائل واتس اب مميزة، ذات موثوقية عالية وبتكلفة منخفضة.




لتبدأ في تجربة الخدمة

يمكنك الحصول بسهولة على حساب تجريبي. وكل ما عليك فعله هو التسجيل من خلال النقر على هذا الرابط

شرح طريقة الربط للمبرمجين :  


بعد إتمامك لعملية التسجيل وتسجيل الدخول إلى حسابك، ستعرض أمامك هذه الصورة.


لإتمام عملية الاتصال، يجب عليك أولاً مسح الكود الموجود عبر تطبيق الواتساب.

بعد ذلك يصبح بإمكانك متابعة عملية الربط البرمجي بالتفصيل كما هو موضح في الجدول التالي:


API URL:

https://2whats.com/API/send

Request method is “GET”

 Parameters:


Parameter

Required

values

mobile

Yes

Your account mobile number

password

Yes

Your account password

instanceid

Yes

The instance number you your account

message

Yes

Text message in Arabic or English format

numbers

Yes

Numbers that you want to send the messages to them,

You have to put comma between each number

The mumber must be in the international format without 00 or +

type

Yes

1: for text message

2: for file message like image, photo,video,… etc

If you set the type to this value then the next parameter “fileurl” is required

3: for voice message (ogg) file type only

If you set the type to this value then the next parameter “fileurl” is required

4: location message

If you set the type to this value then the next parameters “lat” and “long” are required

fileurl

Yes in case of type parameter is 2 or 3

The full url of the file

Allowed media files are (jpeg, jpg, png, gif, bmp, mp3, mp4, mpeg, mov, ogg, doc, docx, xls, xlsx, ppt, pptx, pdf, pps, mdb, txt)

The url must be url encoded

lat

Yes in case of type is 4

Latitude of the location

long

Yes in case of type is 4

Longitude  of the location

json

No

Show the results in json format


Examples:

1-      Sending Text message

https://2whats.com/API/send?mobile=966112233440&password=xxxxxxxxx&instanceid=18xxx&message=test&numbers=96655443322&json=1&type=1

 2-      Sending image file

https://www.2whats.com/index.php?url=API/send&mobile=966112233440&password=xxxxxxxxx&instanceid=18xxx&message=test&numbers=96655443322&json=1&fileurl=https%3A%2F%2Fwww.hiwhats.com%2Fuploads%2F28%2F579a434c.jpeg&type=2

 3-      Sending voice file

https://www.2whats.com/index.php?url=API/send&mobile=966112233440&password=xxxxxxxxx&instanceid=18xxx&message=test&numbers=96655443322&json=1&fileurl=https%3A%2F%2Fwww.hiwhats.com%2Fuploads%2F28%voice.ogg&type=3

 4-      Sending location

https://www.2whats.com/index.php?url=API/send&mobile=966112233440&password=xxxxxxxxx&instanceid=18xxx&message=test&numbers=96655443322&json=1&lat=21.4362767&long=39.9866331&type=4

 5-      Sending Text message with Arabic chars and multi lines

https://www.2whats.com/API/send&mobile=966112233440&password=xxxxxxxxx&instanceid=18xxx&message=%D8%AA%D8%AC%D8%B1%D8%A8%D8%A9%2
0%D8%A7%D9%84%D8%A7%D8%B1%D8%B3%D8%A7%D9%84%20%D9%85%D9%86%20%D8%A7%D9%84%D9%85%D9%88%D9%
82%D8%B9%0A%D8%B1%D8%B3%D8%A7%D9%84%D8%A9%20%D8%B9%D8%B1%D8%A8%D9%8A%D8%A9%0A%D9%88%20%D9%85%
D8%AA%D8%B9%D8%AF%D8%AF%D8%A9%20%D8%A7%D9%84%D8%A3%D8%B3%D8%B7%D8%B1&numbers=96655443322&json=1&type=1

Note:

The message parameter must be url encoded, for example the following message

تجربة الارسال من الموقع

رسالة عربية

و متعددة الأسطر

Must be encoded like this

%D8%AA%D8%AC%D8%B1%D8%A8%D8%A9%20%D8%A7%D9%84%D8%A7%D8%B1%D8%B3%D8%A7%D9%84%20%D9%85%D9%86%20%D8%A7%D9
%84%D9%85%D9%88%D9%82%D8%B9%0A%D8%B1%D8%B3%D8%A7%D9%84%D8%A9%20%D8%B9%D8%B1%D8%A8%D9%8A%D8%A9%
0A%D9%88%20%D9%85%D8%AA%D8%B9%D8%AF%D8%AF%D8%A9%20%D8%A7%D9%84%D8%A3%D8%B3%D8%B7%D8%B1

 You can use this function in php to do this: url_encode()

ملاحظات هامة جداً 
1 ـ يجب أن يبقى الجوال متصل بالانترنت دائماً
2 ـ سوف تصل الرسائل من الرقم الذي قمت بالاتصال به عبر الواتساب
3 ـ هذه الخدمة مخصصة لارسال رسائل التحقق ولا تصلح لارسال العروض والاعلانات
4 ـ اي سوء استخدام للخدمة سوف تؤدي لحظر رقم الواتساب





كلمات دليلة