你可以通过该接口创建一个 user 对象。使用该接口时必须确保用户 id 未被使用。
| 请求参数 | 描述 |
|---|---|
| APP_ID required string | 对应 app 对象的 id,该参数仅需要填写在请求地址内,查看 如何获取App ID。 |
| id required string | 用户 ID ,64 位以内,首字母必须是英文、数字或者下划线。 |
| address optional string | 用户地址。 |
| avatar optional string | 头像图片地址。 |
| email optional string | 邮箱地址。 |
| gender optional string | 性别。MALE:男,FEMALE:女。 |
| mobile optional string | 手机号码。 |
| name optional string | 用户昵称。 |
| metadata optional hash | 详见 元数据。 |
| parent_user_id optional string | 父级用户 ID,长度:64 位以内,首字母必须是英文、数字或者下划线。 |
返回
返回一个 user 对象,或者返回一个错误,详见 错误。
POST https://api.pingxx.com/v1/apps/{APP_ID}/users待补充
待补充
待补充
待补充
待补充
待补充
待补充
curl https://api.pingxx.com/v1/apps/{APP_ID}/users \
-H "Pingplusplus-Signature: SIGNATURE" \
-H "Pingplusplus-Request-Timestamp: 1475029155" \
-H "Content-Type: application/json" \
-u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC:
-d '{
"id": "test_user_003",
"address": null,
"avatar": null,
"email": null,
"gender": "MALE",
"metadata": {},
"mobile": null,
"name": "name003"
}'待补充
待补充
待补充
待补充
待补充
待补充
待补充
{
"id": "test_user_003",
"object": "user",
"app": "app_1Gqj58ynP0mHeX1q",
"address": null,
"available_coupons": 0,
"avatar": null,
"available_balance": 0,
"withdrawable_balance": 0,
"created": 1470215837,
"disabled": false,
"email": null,
"gender": "MALE",
"identified": false,
"livemode": true,
"metadata": {},
"mobile": null,
"name": "name003",
"type": "customer",
"related_app": null,
"settle_accounts": []
}