OAuthCard class
简化生成 oauth 卡的卡片生成器类。
构造函数
OAuth |
创建新的 OAuthCard。 |
方法
button(Text |
登录按钮标签。 |
connection |
要使用的 OAuth 连接的名称。 |
create(Chat |
用于返回具有正确登录附件的邮件的工厂方法 |
text(Text |
卡片的标题。 |
to |
返回卡片的 JSON, |
构造函数详细信息
OAuthCard(Session)
方法详细信息
button(TextType)
connectionName(string)
create(ChatConnector, Session, string, string, string, (err: Error, message: Message) => void)
用于返回具有正确登录附件的邮件的工厂方法
static function create(connector: ChatConnector, session: Session, connectionName: string, text: string, buttonTitle: string, done: (err: Error, message: Message) => void)
参数
- connector
- ChatConnector
- session
- Session
- connectionName
-
string
- text
-
string
- buttonTitle
-
string
- done
-
(err: Error, message: Message) => void