PHP SoapClient - Multiple attributes with the same key

前端 未结 1 993
小蘑菇
小蘑菇 2021-01-19 19:13

I\'m using SoapClient, trying to produce something for this specification:




        
1条回答
  •  孤街浪徒
    2021-01-19 19:46

    The ContactProfileAttribute element is one level too deep. Try:

    $params = array(
        'WSContact' => array(
            'EmailAddress' => $email,
            'ListID' => $listId,
            'ContactProfileAttribute' => $attrs
        ),
        'ProfileUpdateType' => 'Overwrite',
        'ExternalEventIDs' => "",
        'OverrideUnsubscribe' => TRUE,
    );
    

    0 讨论(0)
提交回复
热议问题