campaignmonitor / createsend-php

A PHP library for the Campaign Monitor API
http://campaignmonitor.github.io/createsend-php
Other
285 stars 106 forks source link

Transactional Statistics result format is wrong #110

Open rhyd42 opened 3 years ago

rhyd42 commented 3 years ago

Documentation states the result is in this format:

     * @return CS_REST_Wrapper_Result A successful response will be an array of the form
     *     array(
     *         array(
     *             "MessageID" => string
     *             "Status" => string
     *             "SentAt" => string
     *             "Recipient" => string
     *             "From" => string
     *             "Subject" => string
     *             "TotalOpens" => integer
     *             "TotalClicks" => integer
     *             "CanBeResent" => boolean
     *             "Group" => string, optional
     *             "SmartEmailID" => string, optional
     *         )
     *     )
     */

Actual Response is: CS_REST_Wrapper_Result {#64 ▼ +response: {#65 ▼ +"Query": {#66 ...} +"Sent": 14 +"Bounces": 0 +"Delivered": 14 +"Opened": 9 +"Clicked": 2 } +http_status_code: 200