mirror of https://github.com/caronc/apprise
Documentation changes
parent
360f25e206
commit
acd94e3646
|
@ -205,7 +205,7 @@ Currently, Apprise only supports phone calls with Twilio. Notifications consist
|
||||||
|
|
||||||
| Notification Service | Service ID | Default Port | Example Syntax |
|
| Notification Service | Service ID | Default Port | Example Syntax |
|
||||||
| -------------------- | ---------- | ------------ | -------------- |
|
| -------------------- | ---------- | ------------ | -------------- |
|
||||||
| [Twilio](https://github.com/caronc/apprise/wiki/Notify_twilio) | twilio:// | (TCP) 443 | twilio://AccountSid:AuthToken@FromPhoneNo?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?apikey=Key&method=call<br/>twilio://AccountSid:AuthToken@ShortCode/ToPhoneNo?method=call<br/>twilio://AccountSid:AuthToken@ShortCode/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN?method=call
|
| [Twilio](https://github.com/caronc/apprise/wiki/Notify_twilio) | twilio:// | (TCP) 443 | twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?apikey=Key&method=call
|
||||||
|
|
||||||
## Custom Notifications
|
## Custom Notifications
|
||||||
|
|
||||||
|
|
|
@ -357,7 +357,8 @@ class NotifyTwilio(NotifyBase):
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# We can't send twilio WhatsApp using short-codes as our source
|
# We can't use WhatsApp using short-codes as our source or
|
||||||
|
# for phone calls
|
||||||
if ((len(self.source) in (5, 6)
|
if ((len(self.source) in (5, 6)
|
||||||
or self.method == TwilioNotificationMethod.CALL)
|
or self.method == TwilioNotificationMethod.CALL)
|
||||||
and mode is TwilioMessageMode.WHATSAPP):
|
and mode is TwilioMessageMode.WHATSAPP):
|
||||||
|
@ -409,8 +410,8 @@ class NotifyTwilio(NotifyBase):
|
||||||
# Set up our authentication. Prefer the API Key if provided.
|
# Set up our authentication. Prefer the API Key if provided.
|
||||||
auth = (self.apikey or self.account_sid, self.auth_token)
|
auth = (self.apikey or self.account_sid, self.auth_token)
|
||||||
|
|
||||||
if len(targets) == 0:
|
if len(targets) == 0 and self.method != TwilioNotificationMethod.CALL:
|
||||||
# No sources specified, use our own phone no
|
# No sources specified, use our own phone only with messages
|
||||||
targets.append((self.default_mode, self.source))
|
targets.append((self.default_mode, self.source))
|
||||||
|
|
||||||
while len(targets):
|
while len(targets):
|
||||||
|
|
Loading…
Reference in New Issue