| ParticleCloudLoginWithUserAsync Method |
Logs into ParticleCloud with the given username and password
Namespace: ParticleAssembly: Particle (in Particle.dll) Version: 0.8.5.14 (0.8.5.14)
Syntaxpublic Task<Result> LoginWithUserAsync(
string username,
string password,
int expiresIn = 3600
)
Public Function LoginWithUserAsync (
username As String,
password As String,
Optional expiresIn As Integer = 3600
) As Task(Of Result)
public:
Task<Result^>^ LoginWithUserAsync(
String^ username,
String^ password,
int expiresIn = 3600
)
member LoginWithUserAsync :
username : string *
password : string *
?expiresIn : int
(* Defaults:
let _expiresIn = defaultArg expiresIn 3600
*)
-> Task<Result>
Parameters
- username
- Type: SystemString
The Particle account username - password
- Type: SystemString
The Particle account password - expiresIn (Optional)
- Type: SystemInt32
How many seconds the token will be valid for. 0 means forever. Short lived tokens are better for security.
Return Value
Type:
TaskResultResult if Result.Success == true the user is logged in if its false the user is not logged in and ErrorMessage will contain the error from the server
See Also