Email Receipts API

for owner and author

GET /api/v1/email_receipts

Parameters

Name Description
user_id user who receives email
mailer type of email sent

Request

Headers

Accept: application/json
X-Api-Token: vM5xjH2kAjLuGxz36sAxdixoM2vAdHKbwg
X-Api-Email: user-552@example.com

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: vM5xjH2kAjLuGxz36sAxdixoM2vAdHKbwg" \
	-H "X-Api-Email: user-552@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 163

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": 438
    }
  }
}

Request

Headers

Accept: application/json
X-Api-Token: vM5xjH2kAjLuGxz36sAxdixoM2vAdHKbwg
X-Api-Email: user-552@example.com

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: vM5xjH2kAjLuGxz36sAxdixoM2vAdHKbwg" \
	-H "X-Api-Email: user-552@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 163

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": 438
    }
  }
}