English
English
简体中文
Contact Us
Register
Log In
Language
English
English
简体中文
Contact Us
Log In
Register
Go to main website
App Develop

App Development Platform

App development platform provides multiple development methods such as no-code or IoT App SDK development to maximize the monetization of IoT apps.
layoutIndex

Login to the Platform

Last Updated on : 2021-03-22 07:54:12download

Definitions

Method Version Description
v2.0/pms/production/user/login 2.0 Login Cloud Intelligent Manufacturing Platform

Sequence chart

Login to the Platform

Request

  • Method

    Post

  • Parameters

    Name Type Description Optional
    username String user name N
    password String password after RSA encryption with publicKey
    obtained by /V2.0/pms/production/login/token/get
    N
    token String token obtained by /V2.0/pms/production/login/token/get N
  • Other parameters

    None

Request example

{ "username" : "test-user", "password":"k8wh2/B9Euiwjq6vmmXf3mSR1bv6YD+MjgIVT16VN*******q+fjSE+mwMGVt7JS8=", "token" : "285effe7604bcd2353fbfbbc4dfaf531" }

Response

Name Type Description
result Map result for result
result.accessToken String is used to replace access_token in HEADER
result.refreshToken String is used to refresh access_token via interface
/v1.0/token/{{refresh_token}}
success Boolean succeed or not

Note:

  • password = RSA(password, publicKey)
  • publicKey: got it from the result of v2.0/pms/production/login/token/get.

Response example

Successful Response

{ "result" : { "accessToken" :"82d96c95bf6622743579af8b270b798d", "refreshToken" : "7918ddd52adcafdc485c28c7e3230576" }, "success": true }

Error response

{ "success": false, "code": "THE_BLANK_PARAM", "msg": "username cannot be null" }

Error code

Name Description
THE_BLANK_PARAM parameter can not be empty