Click or drag to resize
ParticleCloudLoginWithUserAsync Method
Logs into ParticleCloud with the given username and password

Namespace: Particle
Assembly: Particle (in Particle.dll) Version: 0.8.5.14 (0.8.5.14)
Syntax
public Task<Result> LoginWithUserAsync(
	string username,
	string password,
	int expiresIn = 3600
)

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: TaskResult
Result 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