cancel
Showing results for 
Search instead for 
Did you mean: 

How to active a removed user ??

Participant

How to active a removed user ??

 Hi,


     How to update the status as ACTIVE for a REMOVED user using code. Can any one Please help me ??


 


thanks


SM.Satish


 


 

8 REPLIES 8
Moderator

The Account Status node is a

The Account Status node is a read only node that is system controlled.  To change it's value, you must change the information of your contact.  For example, an Active contact is any contact who has at least one list membership.  So to change their status from Removed to Active, simply add them back to a list.  We will automatically adjust their Status value to reflect this.

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Participant

So it has to be added as new user ???

 Hi,


Thanks for your reply , So to change their status from Removed to Active, we need to ADD the user to a list which means, the removed id is activated... am ia correct ??


thanks


satish


 


 

Moderator

I think you have the concept

I think you have the concept down.  Active contacts are any contacts who are a member of at least one list.  Removed contacts are contacts who are members of no lists.  So the status will automatically adjust to reflect their list memberships (or lack there of).

Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Hi , i have the same

Hi ,


i have the same issue..


You said "So to change their status from Removed to Active, simply add them back to a list.  We will automatically adjust their Status value to reflect this."


Is this also doing same when we do it using API.


 


Because if i add contact back to any list it shows it is already in list even after it's status is "Removed"..


Any more help


 

CTCT Employee

Could you please clarify your

Could you please clarify your description of what is happening when you update a removed contact.


 


The expected behavior is that when you update a removed contact and specify at least one valid list in the <ContactLists> node the contact will become Active.

Dan H

Support Engineer, Constant Contact

Occasional Participant

I have gone th ' the demo

I have gone th ' the demo provided from Constant Contact "PHP_Sample_Signup_Forms_1.0.3"


and try to update the removed contact to Active status. and it shows



"


The page cannot be displayed

Explanation: The Web server connection was closed.


"


 


i use <code> public    function editSubscriber($contactUrl, $contactXML) {



            $return = $this->doServerCall($contactUrl, $contactXML, 'PUT');



            if (! empty($return)) {

               

                if (strpos($return, '<') !== false) {

                    $parsedReturn = simplexml_load_string($return);

                   

                    if (! empty($parsedReturn->message)) {

                        $this->lastError = $parsedReturn->message;

                    }



                } else {

                    $this->lastError = $parsedReturn->message;

                }



                return false;

            }



            return true;

        }<code>


 


 


i check with the $contactUrl and  $contactXML


 


and it is like

<code>

 



$contactUrl = http://api.constantcontact.com/ws/customers/username/contacts/100
$contactXML =

<?xml version="1.0"?>
<entry xmlns="http://www.w3.org/2005/Atom"><title>TitleNode</title><updated>2010-02-15T22:42:10+01:00</updated><author><name>CTCT Samples</name></author><id>http://api.constantcontact.com/ws/customers/usernmae/contacts/100</id><summary type="text">Customer document</summary><content type="application/vnd.ctct+xml"><Contact xmlns="http://ws.constantcontact.com/ns/1.0/">Customer document<EmailAddress>info@cpcoupons.com</EmailAddress><FirstName></FirstName><LastName></LastName><MiddleName></MiddleName><CompanyName></CompanyName><JobTitle></JobTitle><OptInSource>ACTION_BY_CUSTOMER</OptInSource><HomePhone></HomePhone><WorkPhone></WorkPhone><Addr1></Addr1><Addr2></Addr2><Addr3></Addr3><City></City><StateCode></StateCode><StateName></StateName><CountryCode></CountryCode><PostalCode></PostalCode><SubPostalCode></SubPostalCode><Note></Note><EmailType>HTML</EmailType><ContactLists><ContactList id="http://api.constantcontact.com/ws/customers/username/lists/2"/></ContactLists></Contact></content></entry>

<code>


it just stop the execution even after the correct param


any help will be thankful

CTCT Employee

I have not seen that error

I have not seen that error message before myself however if you are able to get the error code being returned (400, 401, 403 etc..) it will help to troubleshoot this issue better.


 


At the top of the cc_class file you should see the list of user-editable options such as where to enter your API Key, username, and password. In those options should be one called $curl_debug, setting this to true will display the error code and detailed message at the top of the return page. I believe that you may be receiving a 401 error because your request URI begins with http:// instead of the required https://.


 


I would need the error code to come up with a definitive solution however this may be a start.

Dan H

Support Engineer, Constant Contact

Occasional Participant

i have open the curl_debug

i have open the curl_debug option and set it to true


i have check the url and it is https://api.constantcontact.com/ws/customers/username/contacts/296


so there isn't anything wrong with http because it is https.


and i tried agian


but  i still get the same error and even i dont get anything in return as the page got hang then how can i know the return value.


any more