Passer au contenu principal
PUT
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
sms
/
providers
/
twilio
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    factors "github.com/auth0/go-auth0/management/guardian/factors"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.Sms.SetTwilioProvider(
        context.TODO(),
        &factors.SetGuardianFactorsProviderSmsTwilioRequestContent{},
    )
}
{
  "from": "+1223323",
  "messaging_service_sid": "5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq",
  "auth_token": "zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU",
  "sid": "wywA2BH4VqTpfywiDuyDAYZL3xQjoO40"
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

from
string | null
défaut:+1223323

From number

Maximum string length: 64
messaging_service_sid
string | null
défaut:5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq

Copilot SID

Required string length: 1 - 1000
auth_token
string | null
défaut:zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU

Twilio Authentication token

Required string length: 1 - 1000
sid
string | null
défaut:wywA2BH4VqTpfywiDuyDAYZL3xQjoO40

Twilio SID

Required string length: 1 - 1000

Réponse

Twilio SMS configuration successfully updated.

from
string | null
défaut:+1223323

From number

Maximum string length: 64
messaging_service_sid
string | null
défaut:5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq

Copilot SID

Required string length: 1 - 1000
auth_token
string | null
défaut:zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU

Twilio Authentication token

Required string length: 1 - 1000
sid
string | null
défaut:wywA2BH4VqTpfywiDuyDAYZL3xQjoO40

Twilio SID

Required string length: 1 - 1000