نشر على الشبكات الاجتماعية باستخدام Node JS
نشر في الشبكات الاجتماعية مع Node JS
Node JS : وثائق API
- إنشاء مجموعة باستخدام Node JS
- الحصول على قائمة حقول المجموعة باستخدام Node JS
- إضافة حقل إلى مجموعة بها Node JS
- حذف حقل من مجموعة بها Node JS
- حذف جهة اتصال من مجموعة
- عيّن البلد إلى مجموعة بها Node JS
- الحصول على قائمة جهات اتصال المجموعة باستخدام Node JS
- إضافة جهة اتصال إلى مجموعة بها Node JS
- تعديل جهة اتصال مجموعة بها Node JS
- حذف جهة اتصال لمجموعة بها Node JS
نشر على الشبكات الاجتماعية باستخدام Node JS
var aclass = "social";
var method = "send";
var user = "user";
var password = "password";
var to = "123456";
var message = "message+test";
var scheduledatetime = "";
var url = "";
var picture = "";
const https = require('https')
const options = {
hostname: 'afilnet.com',
port: 443,
path: '/api/http/?class='+aclass+'&method='+method+'&user='+user+'&password='+password+'&to='+to+'&message='+message+'&scheduledatetime='+scheduledatetime+'&url='+url+'&picture='+picture,
method: 'GET'
}
const req = https.request(options, res => {
res.on('data', d => {
// Do something
})
})
req.on('error', error => {
console.error(error)
})
req.end()
var aclass = "social";
var method = "send";
var user = "user";
var password = "password";
var to = "123456";
var message = "message+test";
var scheduledatetime = "";
var url = "";
var picture = "";
const https = require('https')
const options = {
hostname: 'afilnet.com',
port: 443,
path: '/api/http/?class='+aclass+'&method='+method+'&user='+user+'&password='+password+'&to='+to+'&message='+message+'&scheduledatetime='+scheduledatetime+'&url='+url+'&picture='+picture,
method: 'POST'
}
const req = https.request(options, res => {
res.on('data', d => {
// Do something
})
})
req.on('error', error => {
console.error(error)
})
req.end()
عند تقديم طلبات ، ستتلقى الحقول التالية:
يتم سرد رموز الأخطاء المحتملة أدناه
المعلمات:
طلب: