Remove an address with Node JS

Remove addresses with Node JS


Remove an address with Node JS

Example in Node JS:

var aclass = "user";
var method = "deleteaddress";
var user = "user";
var password = "password";
var idaddress = "1000";

const https = require('https')
const options = {
  hostname: '',
  port: 443,
  path: '/api/http/?class='+aclass+'&method='+method+'&user='+user+'&password='+password+'&idaddress='+idaddress,
  method: 'GET'

const req = https.request(options, res => {
  res.on('data', d => {
	// Do something

req.on('error', error => {


See example in:

Remove an address with PHP Remove an address with Java Remove an address with C Sharp Remove an address with Unix Remove an address with Ruby on rails Remove an address with Python Remove an address with Android Remove an address with Objective C / iPhone Remove an address with SQL Server Remove an address with Oracle Remove an address with Node JS Remove an address with Go lang Remove an address with Scala lang Remove an address with Swift Remove an address with Delphi

Method details

Parameter Description Compulsory / Optional
class=user Class requested: Class to which the request is made Compulsory
method=deleteaddress Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
idaddress User account address ID Compulsory

When you make requests you will receive the following fields:

  •  status
  •   result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

The possible error codes are listed below

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
  • class : user
  • method : deleteaddress
  • user : user
  • password : password
  • idaddress : 1000


Connect Node JS with our User API

Our User API allows you Remove an address with Node JS in a simple, fast and efficient way. The process you must follow in order to use our API will only take a few minutes. Our company will offer you a free trial so that you can test the service.

Steps to follow

  • Register as a client on Afilnet.
  • Request a test or top up your balance.
  • Start using the API with your registration data (data that you must include in the "user" and "password" fields) or by creating new API credentials from your Afilnet account.

Get started now with the Afilnet API!

Do you have any questions or problems in the integration?

Contact our team with any questions through the contact methods that we offer. Our team will try to offer you an immediate solution and will help you in the integration of our API in your Software.

Try Afilnet for free!

You are just one step away from changing your company's communication forever, from today you will capture and retain your customers better thanks to Afilnet services.

Bulk SMS · Email Marketing · Social network · Instant messaging · Certification · and much more

Register in 1 minute

Register for free and try Afilnet today *

(*) Promotion only valid for companies that have never used the Afilnet service before, only free credit is provided for SMS and Email Marketing services. When requesting the free balance, Afilnet may contact you to verify your company information

IMPORTANT INFORMATION ABOUT COOKIES: If you continue to use this web we will assume that you accept the terms of use. You will find more information in our Cookies Policy. Continue

Payment methods

  • Wire transfer
    Credit card
    Western Union

Afilnet in your language

Afilnet EspañaAfilnet United KingdomAfilnet FranceAfilnet DeutschlandAfilnet ItaliaAfilnet PortugalAfilnet 中国Afilnet 日本Afilnet الإمارات العربية المتحدةAfilnet EstoniaAfilnet PolskaAfilnet РоссияAfilnet TürkiyeAfilnet Česká republikaAfilnet ΕλλάδαAfilnet SverigeAfilnet DanmarkAfilnet România

Copyright © 2021 Afilnet · All rights reserved