Skip to content

"[HTTP 401] Unable to create record: Authenticate" #133

Open
@LyndonMcjohnson

Description

@LyndonMcjohnson

What am I doing wrong here?

.env:

TWILIO_SID=[Valid SID]
TWILIO_AUTH_TOKEN=[Valid Token]
TWILIO_NUMBER=[Valid Number]
TWILIO_APPLICATION_SID=[Valid App SID]
TWILIO_API_KEY=[Valid API Key]
TWILIO_API_SECRET=[Valid API Secret]
TWILIO_ACCOUNT_SID=[Valid Account SID]

Notification Class:

public function via($notifiable)
{
    return ['mail', 'database', TwilioChannel::class];
}

public function toTwilio($notifiable)
{
    return (new TwilioMmsMessage())
	->content('Your service request for ' . $this->subscription->service->name . ' has been updated to the ' . $this->subscription->status . ' status')
	->mediaUrl(route('services'));
}

Controller:

$subscription->client->notify((new ServiceUpdated($subscription))->afterCommit());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions