Get Tracker
print_mail.trackers.retrieve(strid) -> TrackerRetrieveResponse
GET/print-mail/v1/trackers/{id}
Get Tracker
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
tracker = client.print_mail.trackers.retrieve(
"id",
)
print(tracker.id){
"id": "tracker_123456789abcdefghijklmnopqrstuvwxyz",
"object": "tracker",
"live": false,
"redirectURLTemplate": "https://postgrid.com?firstName={{to.firstName}}",
"urlExpireAfterDays": 90,
"visitCount": 0,
"uniqueVisitCount": 0,
"createdAt": "2020-11-12T23:30:12.581Z",
"updatedAt": "2020-11-12T23:31:12.581Z"
}Returns Examples
{
"id": "tracker_123456789abcdefghijklmnopqrstuvwxyz",
"object": "tracker",
"live": false,
"redirectURLTemplate": "https://postgrid.com?firstName={{to.firstName}}",
"urlExpireAfterDays": 90,
"visitCount": 0,
"uniqueVisitCount": 0,
"createdAt": "2020-11-12T23:30:12.581Z",
"updatedAt": "2020-11-12T23:31:12.581Z"
}