An SDK to integrate MyDataHelps™ with your apps to develop your own participant experiences.
See GitHub releases for release notes.
MyDataHelpsClient
object for communication with MyDataHelps. This object can be retained for the lifetime of your app.ParticipantSession
using the access token. This is the primary interface for interacting with MyDataHelps. It can be retained for as long as the participant's access token is valid; create a new ParticipantSession
when you renew the access token or when a different participant logs in.ParticipantSession
functions to perform MyDataHelps operations and requests for the participant.See online documentation or integrated Xcode symbol documentation for details about specific operations and model types.
Example:
import MyDataHelpsKit
// Get participant access token for an authenticated MyDataHelps user within your app.
let tokenString = getAccessToken()
// Initialize a MyDataHelpsKit client and session using the access token.
let client = MyDataHelpsClient()
let session = ParticipantSession(client: client, accessToken: .init(token: tokenString))
// Example of using MyDataHelpsKit functionality:
session.getParticipantInfo { result in
switch result {
case let .success(model):
print("First Name: \(model.firstName ?? "(none)")")
print("Last Name: \(model.lastName ?? "(none)")")
case let .failure(error):
print(error)
}
}
For a complete sample app, see the example
subdirectory.
MyDataHelpsKit is a Cocoa Touch framework, linked to your app as a static library. It's built with the latest Xcode, Swift, and iOS SDK versions. It supports iOS 11 and above. MyDataHelpsKit is self-contained; there are no dependencies on other frameworks or libraries, and requires no Apple frameworks other than Foundation.
Based on your preferred installation process or dependency manager, choose from the below options to integrate MyDataHelpsKit.
Add MyDataHelpsKit as a dependency to your Package.swift file. For more information, see the Swift Package Manager documentation.
.package(url: "https://github.com/CareEvolution/MyDataHelpsKit-iOS", from: "1.3.0")
Or in your Xcode project, go to File > Swift Packages > Add Package Dependency and enter https://github.com/CareEvolution/MyDataHelpsKit-iOS
.
Use the standard Carthage workflow for static frameworks:
github "CareEvolution/MyDataHelpsKit-iOS"
to your Cartfile.carthage update --use-xcframeworks
Carthage/Build
folder, and drag and drop MyDataHelpsKit.xcframework
from the Carthage/Build
folder into the "Frameworks, Libraries, and Embedded Content" section in Xcode.To update MyDataHelpsKit to a newer version, run carthage update --use-xcframeworks
, optionally appending MyDataHelpsKit-iOS to the command to only update this SDK and not other Carthage dependencies.
Use the standard Cocoapods workflow:
pod init
if needed.pod 'MyDataHelpsKit'
to your Podfile.pod install
To update MyDataHelpsKit to a newer version, run pod update
, optionally appending MyDataHelpsKit to the command to only update this SDK and not other Cocoapods dependencies.
MyDataHelpsKit.xcodeproj
into your app's Xcode workspace.To update to a newer version of MyDataHelpsKit, download and unzip the latest release, and then delete and replace the existing MyDataHelpsKit folder structure in your workspace.
link |
Stars: 0 |
Last commit: 2 weeks ago |
Full Changelog: https://github.com/CareEvolution/MyDataHelpsKit-iOS/compare/1.2.0...1.3.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics