Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

BiliAccount.Core.BySMS

Leo Chen edited this page Mar 23, 2020 · 2 revisions

私有属性

属性名 类型 描述
TimeStamp long Unix时间戳

公开方法

方法名 返回类型 描述
Login Account 登录
SMS_Send string 发送验证码

私有方法

方法名 返回类型 描述
GetMD5 string 获取字符串md5
GetSign string 获取参数签名

公有类

类名 描述
SMS_Login_Exception 登录错误

私有类

类名 描述
Login_DataTemplete 登录数据模板
SMS_Send_DataTemplete 发送短信返回数据模板

公开方法

Login

原型

public static Account Login(string captcha_key, string code, string tel)

参数

参数名 类型 描述
captcha_key string captcha_key
code string 验证码
tel string 手机号

错误

类名 描述
SMS_Login_Exception 登录错误

返回值

BiliAccount.Account 账号实例

SMS_Send

原型

public static string SMS_Send(string tel)

参数

参数名 类型 描述
tel string 手机号

错误

类名 描述
Exceptions.SMS_Send_Exception 发送短信错误

返回值

string captcha_key

私有方法

GetMD5

原型

private static string GetMD5(string str)

参数

参数名 类型 描述
str string 要获取MD5的字符串

返回值

string MD5字符串

GetSign

原型

private static string GetSign(string strReq)

参数

参数名 类型 描述
strReq string 请求字符串

返回值

string 签名字符串