Markefanへログインする

Markefanにログインを行うAPIです。 Markefanの各APIを使用するときには、最初にこのログインAPIを用いてユーザーIDやアクセストークンを取得する必要があります。

HTTP種類 : POST

URL : [BASE URL]/SpringRest/account/user/login

パラメータ

名 前

必 須

Username

String

True

Password

String

True

※Passwordは、MD5でハッシュ化した値を渡します。

HTTP戻り値 : JSON

JSON戻り値 例:

{
    "code": 200,
    "message": "LOGIN SUCCESS",
    "status": "OK",
    "generatedId": null,
    "generatedIds": null,
    "statusObject": "OK",
    "account": {
        "accountId": null,
        "name": "",
        "companyName": "",
        "companyUrl": null,
        "creationDate": null
    },
    "user": {
        "userId": null,
        "name": "",
        "firstName": "",
        "lastName": "",
        "role": null
    },
    "auth": {
        "accessToken": "",
        "tokenType": "bearer",
        "refreshToken": "",
        "expiresIn": 3000,
        "scope": "[read, trust, write]"
    }
}

サンプルコード

This method used for login, you have to pass username and password as the parameter to this method and it will return the response from API. It contains users details, such as userId, accessToken etc.

呼び出し方法

Last updated

Was this helpful?