Particle.ParticleCloud.RequestPasswordResetAsync C# (CSharp) Méthode

RequestPasswordResetAsync() public méthode

Requests the password be reset.
public RequestPasswordResetAsync ( String email ) : Task
email String The email.
Résultat Task
		public async Task<Result> RequestPasswordResetAsync(String email)
		{
			if (String.IsNullOrWhiteSpace(email))
			{
				throw new ArgumentNullException(nameof(email));
			}

			try
			{
				var result = await MakePostRequestAsync("user/password-reset", new KeyValuePair<string, string>("username", email));

				return result.AsResult();
			}
			catch (HttpRequestException re)
			{
				return new Result
				{
					Success = false,
					Error = re.Message,
					Exception = re
				};
			}
		}