Skip to content

GatewayAPI is a SMS service provider. This repository will guide to use Gateway SMS service in your iOS project using Swift

Notifications You must be signed in to change notification settings

tmusabe/iOS-GatewayAPISMS

Repository files navigation

iOS-GatewayAPISMS

GatewayAPI is a SMS service provider. This repository will guide to use Gateway SMS service in your iOS project using Swift

General Usage

To send sms, an instance of GatewayAPIWrapper class along the provided token by GatewayAPI

let gatewayApi = GatewayAPIWrapper.init(token: "Insert Your Token")

Add Sender, Receivers, Message to that created instance

gatewayApi.sender = "Sender Name"
gatewayApi.recipients = ["Phone Number"]
gatewayApi.message = "Message to be sent"

For sending the SMS, call the following method of created instance

gatewayApi.sendSMS()

Checking Status

Being acknowledged about the sent messsage, there is a delegate called GatewayAPIWrapperDelegate. To conform this delegate two method must be implemented. One will be called on success, other will be in error

For Success

func sendSMSResponse(result: [String : Any]) {
  print(result)
}

For Error

func sendSMSError(error: String) {
  print(error.description)
}

For more information read their documentation

About

GatewayAPI is a SMS service provider. This repository will guide to use Gateway SMS service in your iOS project using Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages