+(923) 111 88 4444
TecniForge, 79/5-L, Sahiwal 57000

WhatsApp – Link WhatsApp Account

  • Home
  • Docs
  • WhatsApp – Link WhatsApp Account

WhatsApp – Link WhatsApp Account

Link WhatsApp Account. Use this to link WhatsApp accounts that are not yet in the system. Requires “create_whatsapp” API permission.GET https://androidapi.net/api/create/wa.link

Parameter #

FieldTypeDescription
secretStringThe API secret you copied from (Tools -> API Keys) page

Success Response Format #

FieldTypeDescription
statusNumberList of Codes
200 = Success
messageStringResponse message
dataArrayArray of data

Error Response Format #

NameTypeDescription
statusNumberList of Codes
400 = Invalid parameters
401 = Invalid API secret
403 = Access denied
500 = Something went wrong
messageStringResponse message
dataArrayArray of data

PHP Sample #

<?php

  $create = [
      "secret" => "API_SECRET", // your API secret from (Tools -> API Keys) page
  ];

  $cURL = curl_init("https://androidapi.net/api/create/wa.link");
  curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($cURL, CURLOPT_POSTFIELDS, $create);
  $response = curl_exec($cURL);
  curl_close($cURL);

  $result = json_decode($response, true);

  // do something with response
  print_r($result);

Python Sample #

import requests

# your API secret from (Tools -> API Keys) page
apiSecret = "API_SECRET"

create = {
    "secret": apiSecret
}

r = requests.post(url = "https://androidapi.net/api/create/wa.link", params = create)
  
# do something with response object
result = r.json()

Successful Response #

{
  "status": 200,
  "message": "WhatsApp QRCode has been created!",
  "data": {
       qrstring: "2@MwggDzdZqWfC4vYBJQsExNnSuE6+fyGYVo+/RfMyWUxJBW2Q0yDKykpqRi+pSoHquonRk5P6CaVOsg==,BpVhDS5yHBbN9k/xCiQIWwOduYcyo/1tMhoWaNpwJC8=,7F75UfkJzXY6GbLy+3evLc9aCkyN40K2ORR0dZ84eSk=,7nQ0NTR4eaXRZOwIbv9FKoFpFTSNu6fHzKGaICsyDzc=",
       qrimagelink: "https://androidapi.net/api/get/wa.qr?token=e10adc3949ba59abbe56e057f20f883e",
  }
}

Error Response #

{
  "status": 400,
  "message": "Invalid Parameters!",
  "data": false
}

Leave A Comment