returns no emails
GET /api/v1/email_receipts
Parameters
| Name |
Description |
|
user_id
|
user who receives email
|
|
mailer
|
type of email sent
|
Request
Headers
Route
GET /api/v1/email_receipts?mailer=ActionMailer%3A%3ABase
Query Parameters
mailer: ActionMailer::Base
cURL
curl "http://localhost:3000/api/v1/email_receipts?mailer=ActionMailer%3A%3ABase" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: GVy8XK2gdsQkxSVAYxbfKsaoio3sDC5vjg" \
-H "X-Api-Email: user-544@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"email_receipts": [
],
"meta": {
"total": 0,
"page": 1,
"from": 0,
"to": 0,
"per": 25,
"number_of_pages": 1,
"query": {
"sent": false,
"mailer": "ActionMailer::Base",
"school_id": 436
}
}
}