File: SoftLayer_Network_Message_Delivery_Email_Sendgrid.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (59 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
getAccountOverview = {
    "creditsAllowed": 25000,
    "creditsOverage": 0,
    "creditsRemain": 25000,
    "creditsUsed": 0,
    "package": "Free Package",
    "reputation": 100,
    "requests": 56
}

getStatistics = [{
    "blocks": 0,
    "bounces": 0,
    "clicks": 0,
    "date": "2021-04-28",
    "delivered": 0,
    "invalidEmail": 0,
    "opens": 0,
    "repeatBounces": 0,
    "repeatSpamReports": 0,
    "repeatUnsubscribes": 0,
    "requests": 0,
    "spamReports": 0,
    "uniqueClicks": 0,
    "uniqueOpens": 0,
    "unsubscribes": 0
}]

getObject = {
    "accountId": 123456,
    "createDate": "2020-07-06T10:29:11-06:00",
    "id": 1232123,
    "password": "Test123456789",
    "typeId": 21,
    "username": "techsupport3@ie.ibm.com",
    "vendorId": 1,
    "billingItem": {
        "categoryCode": "network_message_delivery",
        "description": "Free Package",
        "id": 695735054,
        "notes": "techsupport3@ie.ibm.com",
    },
    "type": {
        "description": "Delivery of messages through e-mail",
        "id": 21,
        "keyName": "EMAIL",
        "name": "Email"
    },
    "vendor": {
        "id": 1,
        "keyName": "SENDGRID",
        "name": "SendGrid"
    },
    "emailAddress": "techsupport3@ie.ibm.com",
    "smtpAccess": "1"
}

editObject = True
updateEmailAddress = True