Mobile SDK

iOS or Android

API Reference - pims.authentication.user-login

Info: Stellantis Mobile SDK is not publicly available.
Tutorial: check-out Authentication.
SDK Version: v2.3
API Available since: v2.0
API Last update: v2.0
Plateforme Compatibility: PSA
Security: none
Operations:

This api allows to login. It will prompt an external user agent (web view).

Input Parameters Object
Param name Description Type Unit/Values Example Required
action

Name of the action to perform, in this case login.

String

login

login true
local

Define the language to use in the external user agent (web view).

String

en false
context

Context. Only for Android.

Object

n/a

context true
Output Data Object
No outputted data
Error
No errors
Code Example
1
2
3
4
5
6
7
8
9
10
11
pims.set("pims.authentication.user",
  mapOf( /* parameters */  
    Pair("action", "login"),
    Pair("local", "en"),
    Pair("context", context)
  ) 
) { message -> when (message["status"] as? String) {
      "SUCCEEDED" -> { }                          // handle succeeded status
      "FAILED" ->    { }                          // handle failed status
  } }
1
2
3
4
5
6
7
8
9
10
11
pims.set(api: "pims.authentication.user",
  parameters: [  
    "action": "login",
    "local": "en",
    "context": context
  ]
  ) { (message) in 
    if message["status"] == "SUCCEEDED"    { }    // handle succeeded status
    else if message["status"] == "FAILED" { }    // handle failed status
  } 
1
2
3
4
5
6
// representation of the `succeeded` dictionary object message as JSON
{
  "transactionId": "953cfefb-bc72",
  "status": "SUCCEEDED",
  "result": { }
}

false