Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleUpload Email Base

Code Block
Relative URL: IntegraChannels/resources/DialersResources/uploadMultiChannelBlacklist
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Parameters:  filename         (File name)
             fileb64          (Csv file content in base 64)
			 channel		  'email' (this value will always be the same)
			 user			  username
         
Result: 1 (Async Method)

File format

Code Block
CampName;ejemplo@gmail.com;This is an example mail body;;"Var1":"value","Var2":"value";9999

...

Expand
titleSend an email

Code Block
Relative URL: IntegraChannels/resources/Forms/sendEmail
Method: POST
content-type:application/json

Request

Code Block
languagejson
{
    "campaign": "Email",
    "to": "adress@ucontactcloud.com",
    "subject": "Subject",
    "body": "This is an email body can be HTML",
    "attachments": [
        "020212/file1.jpp", 
        "020212/file2.jpg"
    ],
    "schedule": {
        "title": "Date title",
        "organizer": "Myself",
        "from": "2018-08-24 00:00:00",
        "to": "2018-08-24 01:00:00"
    }
    "template": "templateName",
    "variables": {
        "var1":"value",
        "var2":"value2"
    }
}

Template, schedule and variables fields are optionally.

The variables in the template will be replaced before sending the email. Template only will be sent if the body is not specified.

Attachments are optional. Attachments will be a list of strings, each string represents the file location in the uContact server.

Response

200 successfully

Code Block
{
  "guid":"23e5a082-adeb-4e51-9e39-9e8efee7aacc"
}

400 Wrong parameters

500 Server error


Postman collection with example calls to Send SMS

...