How to resubscribe via API?

007

Member
Hello all,

How do I resubscribe via API (aka change the subscription status from unsubscribed to confirmed)?

I'm using this PHP code and it's not updating the subscription status (but if I add code to update a custom field here, it does work):
Code:
$response = $endpoint->update($listUid, $subscriber_uid, array(
                    'status' => 'confirmed',
                ));
 
@007 - you're after:
PHP:
$response = $endpoint->update($listUid, $subscriber_uid, array(
                   'details' => array( 'status' => 'confirmed' ),
               ));
 
  • Like
Reactions: 007
Back
Top