Links

CustomerCreateResponse

NSString * status;
NSString * generated;
NSString * id;
NSString * organizationId;
NSString * locationId;
NSString * hotspotId;
NSString * username;
NSString * password;
NSNumber * mailSent;
Variable
Description
Example
status
OK if customer has been created, KO otherwise
{"OK","KO"}
generated
data when the customer has been created
2022-07-08T13:15:43.885Z
id
id of the customer created
986a372347aac5e4a94516db835d58aa
organizationId
organizationId owner of the customer
3a8ccd060216452e09b2b32e750cb5eb
locationId
locationId owner of the customer
ff80808170f5232b01754653699e109e
hotspotId
hotspotId associated to the customer (not applicable when customer is created via mobile SDK)
username
username of the customer to access cloud4wi services
YDSDFDKJEAS
password
password of the customer to access cloud4wi services
XYXXZXYX
mailSent
deprecated
nil

Example

cloud4WiSDKWiFi.createCustomer(customer, deduplicate: nil) { (customerResponse) in
if let customerResponse = customerResponse {
print(customerResponse.status)
print(customerResponse.generated)
print(customerResponse.id)
print(customerResponse.organizationId)
print(customerResponse.locationId)
print(customerResponse.username)
print(customerResponse.password)
print(customerResponse.mailSent)
}
}
output
Optional("OK") <- status
Optional("2022-07-08T13:15:43.885Z") <- generated
Optional("986a372347aac5e4a94516db835d58aa") <- id
Optional("3a8ccd060216452e09b2b32e750cb5eb") <- organizationId
Optional("ff80808170f5232b01754653699e109e") <- locationId
Optional("YDSDFDKJEAS") <- username
Optional("XXXXX") <- password
nil <- mailSent