4G Camera APIs

Pre-requisite: The user has to be signed in to perform the following operations.


Overview

The 4G Camera APIs provide functionality to validate SIM cards, retrieve pooled data information, and fetch available data pass details for a given space.


Validate Sim Card

To validate sim card within a space, The following method can be used:

  • spaceId (required): The space ID of the User.
  • request (required): Contains validate sim information.
Factory.spaceService.bootstrapSim(
        spaceId: String,
        request: BootstrapSimRequest
    ) -> IVPublisher<Void>

Get Pool Data

To fetch pooled data information for the space, the following method can be called.

  • spaceId (Required): The id of the space.
Factory.spaceService.getPoolData(
        spaceId: String
    ) -> IVPublisher<PoolDataModel>

Get Data Pass Info

To fetch available data pass details, the following method can be called.

  • spaceId (required): The id of the space.
Factory.spaceService.getDataPassInfo(
        spaceId: String
    ) -> IVPublisher<[DataPassModel]>

Get Auto TopUp Plan Info.

To get current auto top-up plan info, the following method can be called.

  • spaceId (required): The id of the space.
Factory.spaceService.getAutoTopUpInfo(spaceId: String) -> IVPublisher<AutoTopUpModel>