Skip to content

Latest commit

 

History

History
121 lines (81 loc) · 6.43 KB

MapplsAPICore.md

File metadata and controls

121 lines (81 loc) · 6.43 KB

This SDK provides core features for authentication and access for various Mappls's SDKs in a very simple way. The preferred way of integrating the SDK can be found in the below.

To initialize and authenticate any Mappls's SDK, it is required to set keys (provided by Mappls) in MapplsAPICore through MapplsAccountManager or Info.plist.

Mappls's Keys can be get from here which is governed by the API terms and conditions.

This library is available through CocoaPods. To install, simply add the following line to your podfile:

pod 'MapplsAPICore', '1.0.11'
Version Dated Description
1.0.11 08 May 2024 - Apple Privacy Manifest file added., - Some support issue resolved for MapplsUIWidget SDK.
1.0.10 27 Oct 2023 - Security Improvements.
1.0.9 22 Sep 2023 - Bug fixes & Improvements.
1.0.8 18 Aug 2023 - Bug fixes & Improvements.
1.0.7 07 Jun 2023 - Bug fixes & Improvements.
1.0.6 30 May 2023 - Domain of APIs changed.
1.0.5 30 Jan 2023 - Error code opimization for initializing Map.
1.0.4 09 Dec 2022 - A custom property modelName of extension UIDevice is made public.
1.0.3 13 Oct 2022 - Some performance improvements and optimization.

You can set required keys using class MapplsAccountManager.

  • To access MapplsAccountManager addition to import statement for MapplsAPICore is required.

    Objective C

    #import <MapplsAPICore/MapplsAPICore.h>

    Swift

    import MapplsAPICore
  • Use below methods of MapplsAccountManager to set different keys as follows.

    Objective C

    [MapplsAccountManager setMapSDKKey:@"MAP_SDK_KEY"];
    [MapplsAccountManager setRestAPIKey:@"REST_API_KEY"];
    [MapplsAccountManager setClientId:@"CLIENT_ID"];
    [MapplsAccountManager setClientSecret:@"CLIENT_SECRET"];
    [MapplsAccountManager setGrantType:@"client_credentials"]; //optional

    Swift

    MapplsAccountManager.setMapSDKKey("MAP_SDK_KEY")
    MapplsAccountManager.setRestAPIKey("REST_API_KEY")
    MapplsAccountManager.setClientId("CLIENT_ID")
    MapplsAccountManager.setClientSecret("CLIENT_SECRET")
    MapplsAccountManager.setGrantType("client_credentials") //optional

Note: Add the above to your's application's initialization i.e application:didFinishLaunchingWithOptions method of AppDelegate

You can set required Mappls's keys by application's `Info.plist`.

To set different Mappls's keys add different keys in `Info.plist` and set value against each key.

Below are different keys which can be added in `Info.plist`.

-   `MapplsSDKKey`
-   `MapplsRestKey`
-   `MapplsClientId`
-   `MapplsClientSecret`
-   `MapplsGrantType`

Below is screenshot for reference.




Our many happy customers:


For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!



@ Copyright 2022 CE Info Systems Pvt. Ltd. All Rights Reserved.