C# Class WhatsAppApi.Register.WhatsRegisterV2

Datei anzeigen Open project: kwailo888/AxolotlTestApp Class Usage Examples

Public Methods

Method Description
GenerateIdentity ( string phoneNumber, string salt = "" ) : string
GetToken ( string number ) : string
RegisterCode ( string phoneNumber, string code, string id = null ) : string
RegisterCode ( string phoneNumber, string code, string &response, string id = null ) : string
RequestCode ( string phoneNumber, string &password, string method = "sms", string id = null ) : bool
RequestCode ( string phoneNumber, string &password, string &response, string method = "sms", string id = null ) : bool
RequestCode ( string phoneNumber, string &password, string &request, string &response, string method = "sms", string id = null ) : bool
RequestExist ( string phoneNumber, string id = null ) : string
RequestExist ( string phoneNumber, string &response, string id = null ) : string
UrlEncode ( string data ) : string

Private Methods

Method Description
GetJsonValue ( this s, string parameter ) : string
GetLanguageAndLocale ( this self, string &language, string &locale ) : void
GetResponse ( string uri ) : string
GetResponse ( string url, NameValueCollection QueryStringParameters = null, NameValueCollection RequestHeaders = null ) : string
ToMD5String ( this s ) : string
ToMD5String ( this s ) : string
ToSHAString ( this s ) : string
ToSHAString ( this s ) : string

Method Details

GenerateIdentity() public static method

public static GenerateIdentity ( string phoneNumber, string salt = "" ) : string
phoneNumber string
salt string
return string

GetToken() public static method

public static GetToken ( string number ) : string
number string
return string

RegisterCode() public static method

public static RegisterCode ( string phoneNumber, string code, string id = null ) : string
phoneNumber string
code string
id string
return string

RegisterCode() public static method

public static RegisterCode ( string phoneNumber, string code, string &response, string id = null ) : string
phoneNumber string
code string
response string
id string
return string

RequestCode() public static method

public static RequestCode ( string phoneNumber, string &password, string method = "sms", string id = null ) : bool
phoneNumber string
password string
method string
id string
return bool

RequestCode() public static method

public static RequestCode ( string phoneNumber, string &password, string &response, string method = "sms", string id = null ) : bool
phoneNumber string
password string
response string
method string
id string
return bool

RequestCode() public static method

public static RequestCode ( string phoneNumber, string &password, string &request, string &response, string method = "sms", string id = null ) : bool
phoneNumber string
password string
request string
response string
method string
id string
return bool

RequestExist() public static method

public static RequestExist ( string phoneNumber, string id = null ) : string
phoneNumber string
id string
return string

RequestExist() public static method

public static RequestExist ( string phoneNumber, string &response, string id = null ) : string
phoneNumber string
response string
id string
return string

UrlEncode() public static method

public static UrlEncode ( string data ) : string
data string
return string