Feel free to have a look at those to get an insight into the power of Private Sharing. We highly encourage you to explore the Documentation for more in-depth examples and guides, as well as troubleshooting advice and showcases of the plethora of capabilities on offer.Īdditionally, there are a number of example apps built on in the examples folder. The topics discussed under Quick Start are just a small part of the power Private Sharing gives to data consumers such as yourself. We ask that when contributing, you ensure your changes meet our Contribution Guidelines before submitting a pull request. Contributionsĭigi.me prides itself in offering our SDKs completely open source, under the Apache 2.0 Licence we welcome contributions from all developers. Note that we also expose other methods if you prefer to manage this process yourself. In this example, as the data comes from external services, the metadata will be a mapped type describing the file’s contents and details of associated service. In addition, metadata is available describing the file. For files with JSON or image mime types, there are convenience methods to decode that raw data into the appropriate format, so that you can easily extract the values you need to power your app. See Handling Errors.įile exposes the property data which contains the file’s raw data along with the mimeType property. In the case that the data stream is interrupted, or if the session obtained above isn’t valid (it may have expired, for example), you will receive an error in the second block. Once all files are downloaded, the second block will be invoked to inform you of this. If the download was successful, you will receive a File object. In your application’s delegate (typically SceneDelegate) override scene:openURLContexts: method as below: func scene ( _ scene : UIScene, openURLContexts URLContexts : Set ) įor each file, the first ‘file handler’ block will be called. Configuring Callback Forwarding:īecause the Private Sharing SDK hooks into your browser to receive callbacks, you are required to forward the openURL event through to the SDK so that it may process responses. However, for sandbox purposes, you can use one of the contracts from the example projects (see /Examples directory). In a production environment, you will also be required to obtain your own Contract ID and Private Key from support. You can get yours by filling out the registration form here. To access the platform, you need to obtain an AppID for your application. Obtaining your Contract ID, Application ID & Private Key: This example will show you how to configure the SDK, and get you up and running with retrieving user data. Nonetheless, we implore you to explore the documentation further. We have taken the most common use case for the Private Sharing SDK and compiled a quick start guide, which you can find below. Navigate to the directory of your Podfile and run the following command: $ pod install -repo-update Use_frameworks! flag must be set in the Podfile We do not currently support linking DigiMeSDK as a Static Library. Import package import DigiMeSDK CocoapodsĪdd DigiMeSDK to your Podfile: use_frameworks! source '' platform :ios, '13.0' target 'TargetName' do pod 'DigiMeSDK' end target ( name : "example", dependencies : ), package ( name : "DigiMeSDK", url : "", from : "x.x.x" )Īdd DigiMeSDK to your target’s dependencies. Substitute "x.x.x" with the latest DigiMeSDK release. Installation Swift Package Manager Add dependenciesĪdd the DigiMeSDK package to the dependencies within your application’s Package.swift or your Xcode project. Our consent driven solution allows you to define exactly what terms you want data by, and the user to see these completely transparently, allowing them to make an informed choice as to whether to grant consent or not. The private sharing platform empowers developers to make use of user data from thousands of sources in a way that fully respects a user’s privacy, and whilst conforming to GDPR.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |