mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailjet::Contact_getcontactslists result is missing crucial informations

MathieuDerelle opened this issue · comments

we can only see 1 list_id :

y = Mailjet::Contact_getcontactslists.find(16280581)
# => #<Mailjet::Contact_getcontactslists:0x007f9207646158 @attributes={"persisted"=>true, "is_active"=>true, "is_unsub"=>false, "list_id"=>14804, "subscribed_at"=>""}>

compared to curl which gives the number of lists subscribed, and the details for each one

curl -s -X GET \
--user "X:X" \
https://api.mailjet.com/v3/REST/contact/16280581/getcontactslists

{ "Count" : 6, "Data" : [{ "IsActive" : true, "IsUnsub" : false, "ListID" : 14804, "SubscribedAt" : "" }, { "IsActive" : true, "IsUnsub" : false, "ListID" : 20959, "SubscribedAt" : "" }, { "IsActive" : true, "IsUnsub" : false, "ListID" : 21294, "SubscribedAt" : "" }, { "IsActive" : true, "IsUnsub" : false, "ListID" : 25669, "SubscribedAt" : "" }, { "IsActive" : true, "IsUnsub" : false, "ListID" : 25670, "SubscribedAt" : "" }, { "IsActive" : true, "IsUnsub" : false, "ListID" : 32616, "SubscribedAt" : "" }], "Total" : 6 }%