iGrantioSDK 0.9.1

iGrantioSDK 0.9.1

RebinReebinMumthasir V P 维护。



 
依赖项
Alamofire~> 5.4.1
SwiftyJSON>= 0
IQKeyboardManagerSwift>= 0
ExpandableLabel>= 0
MiniLayout~> 1.3.0
StepProgressView>= 0
SDStateTableView>= 0
SwiftEntryKit>= 0
AFDateHelper>= 0
Kingfisher>= 0
 

  • iGrant.io

iGrantioSDK

CI Status Version License Platform

示例

要运行示例项目,首先复制仓库并从示例目录中运行 pod install

要求

环境 iOS 10.0+,macOS 10.10+,

Swift 4.2 和 Xcode 10。

安装

iGrantioSDK 通过 CocoaPods 提供。要安装它,请在 Podfile 中添加以下行

pod 'iGrantioSDK'

使用

您可以通过以下单行代码轻松展示iGrantViewController:

#import iGrantioSDK

iGrantioSDK.shared.modalPresentationStyle = .fullScreen
iGrantioSDK.shared.show(organisationId: <ORGANISATION ID>, apiKey: <API KEY>, userId: <USERID>)

获取iGrant用户ID

如果您需要匿名登录,可以使用以下函数来创建新的iGrant用户ID。

iGrantioSDK.shared.createIGrantUser(orgId: <ORGANISATION ID>,apiKey: <APIKEY>) {(success, userId) in
 print("UserID \(userId)")
}

作者

iGrant.io

许可

iGrantioSDK遵循自定义许可。有关更多信息,请参阅LICENSE文件。