メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
phone
/
message-types
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.Phone.GetMessageTypes(
        context.TODO(),
    )
}
{
  "message_types": []
}

承認

Authorization
string
header
必須

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

レスポンス

有効な電話ベースのファクターを返します

message_types
enum<string>[]

テナントで有効にする電話番号ファクターのリスト。smsvoice を含めることができます。

利用可能なオプション:
sms,
voice