0

我正在尝试使用他们的aweber php 库通过 aweber rest api 获取用户活动。

代码:

$all_subscribers = $account->findSubscribers($params);
    foreach ($all_subscribers as $sub) {
       echo "<p><strong>Name:</strong>  {$sub->name}</p>";
       echo "<p><strong>Email:...;
       foreach ($sub->getActivity() as $event) {
           echo "<p>{$event->type}: {$event->event_time}</p>";
        }
}

我能够获取事件类型和事件时间等详细信息,但我还需要获取事件发生的消息的标题和 URL。我也试过$event->self_link,但没有帮助。

这是getActivity()方法返回的数据

[data] => Array
    (
        [event_time] => 2017-04-30 07:05:00-04:00
        [resource_type_link] => https://api.aweber.com/1.0/#open
        [http_etag] => "28eb617e4d24407e49b14a9402608f423da2f4a7-ca5feee2b7fbb6febfca8af5541541ea960aaedb"
        [subscriber_link] => https://api.aweber.com/1.0/accounts/1011749/lists/4120909/subscribers/59065294
        [self_link] => https://api.aweber.com/1.0/accounts/1011749/lists/4120909/campaigns/f28501689/messages/40127/opens/15096
        [type] => open
        [id] => 15096
    )

我试图获取的链接

4

0 回答 0