客户接口/社交账号登录

获取三方登录配置信息

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.config 游客可访问

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
thirdSourcestringOptional

第三方源 google,facebook,twitter,telegram,apple,metamask

Responses
200Success
application/json
post
/global/customer.app.CustomerThirdLoginService.config
POST /api/global/customer.app.CustomerThirdLoginService.config HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "thirdSource": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "thirdSource": "text",
    "clientId": "text",
    "developerAccount": "text"
  }
}

Apple三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.appleVerify 登录之后可以访问

Body
companyIdintegerRequired
openIdstringOptional

app端必传

identityTokenstringOptional

app端必传

emailintegerOptional
codestringOptional

web端必传

idTokenstringOptional

web端必传

Responses
200Success
application/json
post
/h/com.cats.customer.api.app.CustomerThirdLoginService/appleVerify
POST /api/h/com.cats.customer.api.app.CustomerThirdLoginService/appleVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 95

{
  "companyId": 1,
  "openId": "text",
  "identityToken": "text",
  "email": 1,
  "code": "text",
  "idToken": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "userId": "text",
    "action": "text",
    "result": true,
    "failReason": "text",
    "thirdSource": "text",
    "email": "text",
    "phone": "text"
  }
}

Facebook三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.facebookVerify 登录之后可以访问

Body
accessTokenstringOptional

校验accessToken

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.facebookVerify
POST /api/third/login/customer.app.CustomerThirdLoginService.facebookVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 22

{
  "accessToken": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "userId": "text",
    "action": "text",
    "result": true,
    "failReason": "text",
    "thirdSource": "text",
    "email": "text",
    "phone": "text"
  }
}

Google三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.googleVerify 登录之后可以访问

Body
idTokenstringOptional
accessTokenstringOptional
Responses
200Success
application/json
post
/h/com.cats.customer.api.app.CustomerThirdLoginService/googleVerify
POST /api/h/com.cats.customer.api.app.CustomerThirdLoginService/googleVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "idToken": "text",
  "accessToken": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "data": {
    "thirdSource": "text",
    "result": true,
    "phone": "text",
    "action": "text",
    "failReason": "text",
    "userId": "text",
    "email": "text",
    "token": "text"
  },
  "msgParams": "text"
}

Telegram三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.telegramVerify ###0.0.2版本,配合三方注册,登录(不需要手机、邮箱)使用 version=0.0.2 bizType=customer.app.CustomerThirdLoginService.telegramVerify 登录之后可以访问

Header parameters
companyIdstringRequiredExample: {{company}}
langstringRequiredExample: en-US
tracestringRequiredExample: {{mock_trace}}
versionstringRequiredExample: 0.0.1
Body
userJsonStrstringRequired
channelSourcestringRequired
Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.telegramVerify
POST /api/third/login/customer.app.CustomerThirdLoginService.telegramVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
lang: text
trace: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "userJsonStr": "text",
  "channelSource": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "userId": "text",
    "action": "text",
    "result": true,
    "failReason": "text",
    "thirdSource": "text",
    "email": "text",
    "phone": "text",
    "authToken": "text"
  }
}

Metamask三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.metaMaskVerify 登录之后可以访问

Body
web3SignaturestringRequired
addressstringRequired
timestampintegerRequired
Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.metaMaskVerify
POST /api/third/login/customer.app.CustomerThirdLoginService.metaMaskVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 55

{
  "web3Signature": "text",
  "address": "text",
  "timestamp": 1
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "userId": "text",
    "action": "text",
    "result": true,
    "failReason": "text",
    "thirdSource": "text",
    "email": "text",
    "phone": "text"
  }
}

Twitter三方登录校验

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.twitterVerify 登录之后可以访问

Body
oauth_tokenstringRequired

oauth_token

oauth_token_secretstringRequired

oauth_token_secret

user_idstringRequired

user_id

screen_namestringRequired

screen_name

access_tokenstringRequired

access_token

statestringRequired

state

client_idstringRequired

client_id

networkstringRequired

network

displaystringRequired

display

redirect_uristringRequired

redirect_uri

scopestringRequired

scope

oauth_proxystringRequired

oauth_proxy

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.twitterVerify
POST /api/third/login/customer.app.CustomerThirdLoginService.twitterVerify HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 236

{
  "oauth_token": "text",
  "oauth_token_secret": "text",
  "user_id": "text",
  "screen_name": "text",
  "access_token": "text",
  "state": "text",
  "client_id": "text",
  "network": "text",
  "display": "text",
  "redirect_uri": "text",
  "scope": "text",
  "oauth_proxy": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "bizCode": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "userId": "text",
    "action": "text",
    "result": true,
    "failReason": "text",
    "thirdSource": "text",
    "email": "text",
    "phone": "text"
  }
}

三方登录

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.login 游客可访问

Header parameters
companyIdstringRequiredExample: {{company}}
langstringRequiredExample: en-US
tracestringRequiredExample: {{mock_trace}}
versionstringRequiredExample: 0.0.1
Body
thirdSourcestringRequired

第三方源 google,facebook,twitter,telegram,apple,metamask

userIdstringRequired

第三方userId

emailstringRequired

邮箱

phonestringRequired

手机号

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.login
POST /api/third/login/customer.app.CustomerThirdLoginService.login HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
lang: text
trace: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "thirdSource": "text",
  "userId": "text",
  "email": "text",
  "phone": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "id": 1,
    "companyId": 1,
    "customerGroupId": 1,
    "customerNo": "text",
    "kycAuditStatus": 1,
    "kycAuditRemark": "text",
    "kycStatus": 1,
    "kycRemark": "text",
    "accountList": {},
    "accountRemark": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "country": "text",
    "type": 1,
    "deposit": 1,
    "withdraw": 1,
    "optional": 1,
    "activateStatus": 1,
    "activateTime": 1,
    "companyKycStatus": 1,
    "status": 1,
    "thirdServerCode": "text",
    "source": "text",
    "thirdLoginSource": "text",
    "thirdUserId": "text",
    "idCard": "text",
    "idCardType": "text",
    "thirdIntactMsg": "text",
    "firstName": "text",
    "lastName": "text",
    "isFund": 1,
    "assertPassStatus": "text",
    "googleId": 1,
    "openAccountType": 1,
    "loginTime": 1,
    "createTime": 1,
    "relationCustomerId": 1,
    "companyType": "text",
    "registerSource": 1,
    "associationCompanyId": 1,
    "registerTime": 1
  },
  "ok": true,
  "fail": true
}

三方注册

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.register 游客可访问

Header parameters
companyIdstringOptionalExample: {{company}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
countrystringRequired

国家

thirdSourcestringOptional

第三方源 google,facebook,twitter,telegram,apple,metamask

userIdstringOptional

第三方userId

customerGroupIdinteger · int64Optional

客户组ID

emailstringOptional

邮箱 与手机号码必须存在一个

phonestringOptional

手机号码

phoneAreastringOptional

新手机区号

verifyCodestringOptional

验证码

sendTokenstringOptional

验证码发送票据

registerSourceinteger · int32 · min: 1Optional

注册来源:1=移动端web:H5,2=pcweb:PC_Web,3=系统&后台注册:System,4=安卓原生app:Android,5=苹果原生app:iOS,6=鸿蒙OS:HOS,7=pc windows客户端:PC_Win,8=pc mac客户端:PC_Mac,9=不属于以上的:其他

utmSourcestringOptional

广告来源(开户链接参数source)

utmMediumstringOptional

广告媒介(开户链接参数medium)

utmCampaignstringOptional

广告系列(开户链接参数campaign)

utmContentstringOptional

广告组(开户链接参数content)

utmTermstringOptional

关键词(开户链接参数term)

langstringOptional

语言信息

thirdServerCodestring · max: 45Optional

第三方系统唯一编号

thirdServerSourcestring · max: 10Optional

第三方系统来源,如:代理=agent

registerDevicestringOptional

注册的设备型号

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.register
POST /api/third/login/customer.app.CustomerThirdLoginService.register HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 266

{
  "customerGroupId": 1,
  "userId": "5708954114",
  "phoneArea": "18163223782",
  "phone": "18631358776",
  "sendToken": "reprehenderit veniam do sit minim",
  "verifyCode": "23",
  "country": "CN",
  "thirdSource": "telegram",
  "registerSource": 2,
  "thirdServerSource": "test",
  "thirdServerCode": "10"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "customerNo": "text",
    "list": [
      {
        "levelCode": "text",
        "openAccountType": 1,
        "levelName": "text",
        "pathName": "text",
        "pathCode": "text",
        "elementList": [
          {
            "elementCode": "text",
            "elementName": "text",
            "showType": "text",
            "extend": "text",
            "elementValue": "text",
            "elementValueInputGroup": "text",
            "elementCodeInputGroup": "text"
          }
        ]
      }
    ],
    "companyId": 1,
    "ext1": "text",
    "ext2": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "customerGroupId": 1,
    "country": "text",
    "id": 1,
    "optional": 1,
    "companyKycStatus": 1,
    "thirdServerCode": "text",
    "source": "text",
    "capitalInStatus": 1,
    "openAccountType": 1,
    "companyType": "text",
    "associationCompanyId": 1,
    "registerTime": 1,
    "apiCheckSwitch": true,
    "apiCheckRule": "text",
    "token": "text"
  },
  "ok": true,
  "fail": true
}

三方登录(不需要手机,邮箱)

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.socialLogin 游客可访问

Header parameters
companyIdstringRequiredExample: {{company}}
langstringRequiredExample: en-US
tracestringRequiredExample: {{mock_trace}}
versionstringRequiredExample: 0.0.1
Body
thirdSourcestringRequired

第三方源 telegram

userIdstringRequired

第三方userId

authTokenstring · min: 64 · max: 64Required

三方授权凭证

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.socialLogin
POST /api/third/login/customer.app.CustomerThirdLoginService.socialLogin HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
lang: text
trace: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "thirdSource": "text",
  "userId": "text",
  "authToken": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "id": 1,
    "companyId": 1,
    "customerGroupId": 1,
    "customerNo": "text",
    "kycAuditStatus": 1,
    "kycAuditRemark": "text",
    "kycStatus": 1,
    "kycRemark": "text",
    "accountList": {},
    "accountRemark": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "country": "text",
    "type": 1,
    "deposit": 1,
    "withdraw": 1,
    "optional": 1,
    "activateStatus": 1,
    "activateTime": 1,
    "companyKycStatus": 1,
    "status": 1,
    "thirdServerCode": "text",
    "source": "text",
    "thirdLoginSource": "text",
    "thirdUserId": "text",
    "idCard": "text",
    "idCardType": "text",
    "thirdIntactMsg": "text",
    "firstName": "text",
    "lastName": "text",
    "isFund": 1,
    "assertPassStatus": "text",
    "googleId": 1,
    "openAccountType": 1,
    "loginTime": 1,
    "createTime": 1,
    "relationCustomerId": 1,
    "companyType": "text",
    "registerSource": 1,
    "associationCompanyId": 1,
    "registerTime": 1
  },
  "ok": true,
  "fail": true
}

三方注册(不需要手机,邮箱)

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.socialRegister 游客可访问

Header parameters
companyIdstringOptionalExample: {{company}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
countrystringRequired

国家code

thirdSourcestringRequired

第三方源 telegram

userIdstringRequired

第三方userId

authTokenstring · min: 64 · max: 64Required

三方授权凭证

registerSourceinteger · int32 · min: 1Required

注册来源:1=移动端web:H5,2=pcweb:PC_Web,3=系统&后台注册:System,4=安卓原生app:Android,5=苹果原生app:iOS,6=鸿蒙OS:HOS,7=pc windows客户端:PC_Win,8=pc mac客户端:PC_Mac,9=不属于以上的:其他

customerGroupIdinteger · int64Optional

客户组ID

utmSourcestringOptional

广告来源(开户链接参数source)

utmMediumstringOptional

广告媒介(开户链接参数medium)

utmCampaignstringOptional

广告系列(开户链接参数campaign)

utmContentstringOptional

广告组(开户链接参数content)

utmTermstringOptional

关键词(开户链接参数term)

langstringOptional

语言信息

thirdServerCodestring · max: 45Optional

第三方系统唯一编号

thirdServerSourcestring · max: 10Optional

第三方系统来源,如:代理=agent

registerDevicestringOptional

注册的设备型号

tokenstringOptional

登录票据

Responses
200Success
application/json
post
/third/login/customer.app.CustomerThirdLoginService.socialRegister
POST /api/third/login/customer.app.CustomerThirdLoginService.socialRegister HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 314

{
  "country": "text",
  "thirdSource": "text",
  "userId": "text",
  "authToken": "text",
  "registerSource": 1,
  "customerGroupId": 1,
  "utmSource": "text",
  "utmMedium": "text",
  "utmCampaign": "text",
  "utmContent": "text",
  "utmTerm": "text",
  "lang": "text",
  "thirdServerCode": "text",
  "thirdServerSource": "text",
  "registerDevice": "text",
  "token": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "customerNo": "text",
    "list": [
      {
        "levelCode": "text",
        "openAccountType": 1,
        "levelName": "text",
        "pathName": "text",
        "pathCode": "text",
        "elementList": [
          {
            "elementCode": "text",
            "elementName": "text",
            "showType": "text",
            "extend": "text",
            "elementValue": "text",
            "elementValueInputGroup": "text",
            "elementCodeInputGroup": "text"
          }
        ]
      }
    ],
    "companyId": 1,
    "ext1": "text",
    "ext2": "text",
    "email": "text",
    "phone": "text",
    "phoneArea": "text",
    "name": "text",
    "loginPassStatus": "text",
    "payPassStatus": "text",
    "customerGroupId": 1,
    "country": "text",
    "id": 1,
    "optional": 1,
    "companyKycStatus": 1,
    "thirdServerCode": "text",
    "source": "text",
    "capitalInStatus": 1,
    "openAccountType": 1,
    "companyType": "text",
    "associationCompanyId": 1,
    "registerTime": 1,
    "apiCheckSwitch": true,
    "apiCheckRule": "text"
  },
  "ok": true,
  "fail": true
}

Last updated