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
To validate the SIM using ICCID, you need to provide the following details:
spaceId(Required): The id of the space.iccid(Required): The ICCID of the SIM card.
Factory.spaceService.validateSim(
spaceId: String,
iccid: String
) -> IVPublisher<ValidateSimModel>
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]>