Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST
- orinoco/api/v1/send
- {
- "token": "123123thisisyourexampletoken123123",
- "from": "examplefrom@exampledomain.com",
- "subject": "this is not spam at all",
- "to": [
- "firstdestiny@thisdomain.com",
- "seconddestiny@thatdomain.com"
- ],
- "body": {
- "plain": "hi ${CustName} this the example e-mail... ${TotalPending} .. ${DueDays}",
- "html": "<div> hi ${CustName} this the example e-mail... ${TotalPending} .. ${DueDays} </div>"
- },
- "data": [
- {
- "CustName": "First This",
- "TotalPending": "12,345,678.90",
- "DueDays": "40"
- },
- {
- "CustName": "Second That",
- "TotalPending": "1,678.00",
- "DueDays": "80"
- }
- ],
- "callbackurl": "http://yoursite.com/some/way/to/call/you/back/<123messageid123>"
- }
- Response/ POST callback:
- {
- "email": "123emailId123",
- "status": “accepted/rejected”,
- "reason": "all OK! ty :) / UNAUTHORIZED GTFO"
- }
- ##############################
- GET
- orinoco/api/v1/check
- {
- "token": "123123thisisyourexampletoken123123",
- "email": "123emailId123"
- }
- RESPONSE:
- {
- "email": "123emailId123",
- "status": “queued / delivered / failed”,
- "reason": "Queued / Waiting for send / UNAUTHORIZED GTFO"
- }
- #######################################
- GET
- orinoco/api/v1/tracking
- {
- "token": "123123thisisyourexampletoken123123",
- "email": "123emailId123"
- }
- RESPONSE:
- {
- "id": "123emailId123",
- "from": "sender@example.com",
- "subject": "example subject",
- "tos": [
- "recipient.email@example.com",
- "recipient2.email2@example2.com"
- ],
- "tracking": [
- {
- "opens": 22
- },
- {
- "opens": 0
- }
- ],
- "status": [
- {
- "reason": "all ok! :)",
- "status": "opened"
- },
- {
- "reason": "cant reach domain example2.com",
- "status": "failed"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement