-
Notifications
You must be signed in to change notification settings - Fork 3
Email Adapter API
| POST | `/` | Create a new email input adapter |
| POST | `/default` | Create a new email input adapter with some default configurations |
Create a new email input adapter.
Parameter:
body required - email adapter config JSON object that defines the parameters of the adapter (see below)
interval optional (default is 1000) - defines the time offset in milliseconds between two consecutive pulls
delete optional (default is true) - defines if the adapter should be deleted after receiving a message
Respond:
200 adapter successfully created - Id is in the body of the response
Create a new email input adapter with some default configuration (e.g., using the default email address of SmartCom). Further details can be specified using query parameters.
Parameter (query parameters):
subject required - defines the subject of the email message
type required - defines the type of the message created by this adapter upon receiving an email
subtype required - defines the subtype of the message created by this adapter upon receiving an email
interval optional (default is 1000) - defines the time offset in milliseconds between two consecutive pulls
delete optional (default is true) - defines if the adapter should be deleted after receiving a message
Respond:
200 adapter successfully created - Id is in the body of the response
{
"subject": "SmartCom Message",
"host": "{HOST}",
"username": "{EMAIL_ADDRESS}",
"password": "{PASSWORD}",
"port": "{PORT}"
"authentication": "true",
"type": "NEGOTIATION",
"subtype": "RESPONSE",
"deleteMessage": true
}
Copyright (c) 2014 Technische Universitat Wien (TUW), Distributed Systems Group E184 (http://dsg.tuwien.ac.at)
This work was partially supported by the EU FP7 FET SmartSociety (http://www.smart-society-project.eu/).
SmartCom
Communication as a Service