Wired Plus API Documentation

Raise a Technical Question with the Support Team

API v1 Guide

Account

Automation

Contacts

Dynamic Rows

Lists

Campaigns

Transactional Emails

Lead Score

Products

Carts

Orders

Custom Fields

POST ResubscribeContact

Schedule an email request for the contact to re-subscribe into the system.

Input and output parameters

The input and output parameters for this method are:

*denotes required field.

Input Parameter Name Type/Info
*email varchar(255) the email address of the contact to re-subscribe.
Outputs:
  • message

Examples

Curl

    
    
        
curl --request POST \
  --url https://api.wiredplus.com/v1/ResubscribeContact \
  --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  --form 'email=fredsmith@wiredplus.com'
    
    

PHP

    
    

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.wiredplus.com/v1/ResubscribeContact",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nfredsmith@wiredplsu.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
  CURLOPT_HTTPHEADER => array(
    "content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}



jQuery

    
    


var form = new FormData();
form.append("email", "hannahmartinsingh@gmail.com");

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.wiredplus.com/v1/ResubscribeContact",
  "method": "POST",
  "headers": {},
  "processData": false,
  "contentType": false,
  "mimeType": "multipart/form-data",
  "data": form
}

$.ajax(settings).done(function (response) {
  console.log(response);
});




Result Format JSON

 

{
    "message": "Scheduled re-subscribe request to contact."
}