PyzeSMS

@interface PyzeSMS : PyzeCustomEvent

PyzeSMS

Subclass of PyzeCustomEvent class used for supporting Short Message Service and Multimedia Messaging Service.

Since

v3.1.0
  • Send the device for registration with phone number.

    Since

    v3.1.0

    Declaration

    Objective-C

    + (void)postRegisteredDevice:(nonnull NSString *)phoneNumber
                 withCountryCode:(nonnull NSString *)countryCode
                  withAttributes:(nonnull NSDictionary *)dictionary;

    Swift

    class func postRegisteredDevice(_ phoneNumber: String, withCountryCode countryCode: String, withAttributes dictionary: [AnyHashable : Any] = [:])

    Parameters

    phoneNumber

    Phone number as ‘1234567890’

    countryCode

    Country code where the phone being used. For Example: e.g. “1” for US “91” for India

    dictionary

    Any additional attributes

  • Post verification of the device.

    Since

    v3.1.0

    Declaration

    Objective-C

    + (void)postVerification:(nonnull NSString *)phoneNumber
        withVerificationCode:(nonnull NSString *)verificationCode
             withCountryCode:(nonnull NSString *)countryCode
              withAttributes:(nonnull NSDictionary *)dictionary;

    Swift

    class func postVerification(_ phoneNumber: String, withVerificationCode verificationCode: String, withCountryCode countryCode: String, withAttributes dictionary: [AnyHashable : Any] = [:])

    Parameters

    phoneNumber

    Phone number as ‘1234567890’

    verificationCode

    Phone verification code received.

    countryCode

    Country code where the phone being used. For Example: e.g. “1” for US “91” for India

    dictionary

    Any additional attributes

  • Send the device for unsubscribing with phone number.

    Since

    v3.1.0

    Declaration

    Objective-C

    + (void)postUnsubscribeDevice:(nonnull NSString *)phoneNumber
                  withCountryCode:(nonnull NSString *)countryCode
                   withAttributes:(nonnull NSDictionary *)dictionary;

    Swift

    class func postUnsubscribeDevice(_ phoneNumber: String, withCountryCode countryCode: String, withAttributes dictionary: [AnyHashable : Any] = [:])

    Parameters

    phoneNumber

    Phone number as ‘1234567890’

    countryCode

    Country code where the phone being used. For Example: e.g. “1” for US “91” for India

    dictionary

    Any additional attributes