emails API 方法
请求新的确认邮件,可以发送到新的电子邮件地址。
重新发送确认邮件
POST /api/v1/emails/confirmations HTTP/1.1
重新发送一封新的确认邮件。若提供了电子邮件地址,会在重新发送确认邮件之前更新未确认用户的电子邮件地址。
返回: 空
OAuth: 颁发给创建未确认用户的客户端的用户令牌
版本历史:
3.4.0 - 添加
请求
标头
- Authorization
- 必需 提供此标头,值为
Bearer <user_token>,以获得对此 API 方法的访问授权。
表单数据参数
- 字符串。若提供,会在重新发送确认邮件之前更新未确认用户的电子邮件地址。
响应
200: OK
{}
403: Forbidden
与令牌关联的客户端并不关联该未确认用户。
{
"error": "This method is only available to the application the user originally signed-up with"
}
或者,用户已经确认了他们的电子邮件地址。
{
"error": "This method is only available while the e-mail is awaiting confirmation"
}
另请参考
POST /api/v1/apps POST /api/v1/accounts app/controllers/api/v1/emails/confirmations_controller.rb翻译状态: 本文是英文页面 emails API methods 的翻译,最后翻译时间:2025-04-21,点击这里可以查看翻译后页面的改动。