Get all emails for a user
Name | Type | Required | Optional | Searchable | Note |
---|---|---|---|---|---|
userid | numeric | REQUIRED, Passed via URI | |||
string | via search string | ||||
status | string | via search string |
http://devsandbox.targetsolutions.com/v1/users/{userid}/emails
http://devsandbox.targetsolutions.com/v1/users/{userid}/emails?q={"email":"random email","status":"random status"}
GET /users/{userid}/emails HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: dmCzTkBlaEIVmWcyxKIp5w==
Cache-Control: no-cache
{ "emails":[ { "link":"http://devsandbox.targetsolutions.com/v1/users/21404/emails/1593", "email":"anthony.mcdonough+dump@gmail.com", "status":"Active", "emailid":1593 } ], "pagination":{ "next":"http://devsandbox.targetsolutions.com/v1/users/21404/emails?startrow=2&limit=1" } }
{ "httpcode":200, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901", "developermessage":"The request returned zero results.", "statuscode":901, "status":"ok" }
{ "httpcode":401, "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800", "developermessage":"A request was made to a resource that you do not have ownership of.", "statuscode":800, "status":"access denied" }