RedNote icon

RedNote

小红书内容搜索、用户信息获取、登录管理和笔记操作

Login with Phone

AI-generated

Summary

Send a verification code to a phone number or log in to the RedNote service by submitting both the phone number and verification code.

Inputs

  • Phone Number (required) — The phone number to use for login.
  • Verification Code — The verification code received by the phone number. Leave empty to only send the verification code.

Output shape

an object indicating the login status and related information such as phone number, messages, timestamps, and login success or failure.

If the verification code is omitted, the operation sends a verification code to the given phone number and returns a status indicating the code was sent. If the verification code is provided, the operation attempts login and returns success or failure status, including error messages if login fails.

Examples

Example 1: Send verification code

Provide only the 'Phone Number' parameter to send a verification code to that number. No verification code is needed at this point.

Example 2: Complete login

Provide both 'Phone Number' and received 'Verification Code' to attempt login using the phone authentication.

Discussion