Mobile SDK

iOS or Android

    API Reference - pims.sdk.version

    Info: Stellantis Mobile SDK for ex Groupe PSA brands (Citroën, DS, Peugeot, Opel and Vauxhall) is not publicly available for now.
    Available since: v2.0.X
    Component: SDK
    Security: Authentication is not required.
    Operation:

    Returns the facade core version and the facade version.

    Input Parameter
    No params
    Output Data
    Data name Description Type Unit/Values Example
    versionCore

    Facade core version.

    String

    n/a

    1.2.5
    versionFacade

    Facade version

    String

    n/a

    1.2.5
    Error
    No errors
    Code Example
    1
    2
    3
    4
    5
    6
    7
    
    pims.get("pims.sdk.version"
      /* no params */
    ) { message -> when (message["status"] as? String) {
          "SUCCEEDED" -> { }                          // handle succeeded status
          "FAILED" ->    { }                          // handle failed status
      } }
    
    1
    2
    3
    4
    5
    6
    7
    
    pims.get(api: "pims.sdk.version"
      /* no params */
      ) { (message) in 
        if message["status"] == "SUCEEDED"    { }    // handle succeeded status
        else if message["status"] == "FAILED" { }    // handle failed status
      } 
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    // representation of the `succeeded` dictionary object message as JSON
    {
      "transactionId": "953cfefb-bc72",
      "status": "SUCCEEDED",
      "result": { 
      "versionCore": "1.2.5",
      "versionFacade": "1.2.5"
    } 
    }
    

    false