Changeset 68514 in spip-zone


Ignore:
Timestamp:
Dec 20, 2012, 3:39:15 PM (7 years ago)
Author:
cedric@…
Message:

decodage json et log de debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/mailshot/trunk/bulkmailer/mandrill.php

    r68513 r68514  
    6161
    6262        include_spip("inc/json");
    63         $events = json_decode($events);
     63        $events = json_decode($events, true);
     64
     65        spip_log("bulkmailer_mandrill_webhook_dist ".var_export($events,true),"mailshot");
    6466
    6567        foreach ($events as $event){
     
    107109        // son webhook
    108110        $url = url_absolue(_DIR_RACINE."mailshot_webhook.api/mandrill/");
    109         #$url = url_absolue(_DIR_RACINE."mailshot_webhook.api/mandrill/","http://www.yterium.net/");
     111        $url = url_absolue(_DIR_RACINE."mailshot_webhook.api/mandrill/","http://www.yterium.net/");
    110112        $events = array(/*"send",*/"hard_bounce", "soft_bounce", "open", "click", "spam", "reject");
    111113
Note: See TracChangeset for help on using the changeset viewer.