Quickstart
Start reading user data in 10 minutes!
Overview
Get your API Keys
Connect App Clip & Instant App
Simply launch the Connect in your application using a URL. Here’s how to construct the Connect URL.
Connect Helper Package
We provide packages to make it easy to generate a valid Connect URL. The Connect helper handles parameter validations automagically!
Install Using Swift Package Manager in Xcode
- Open your project in Xcode.
- Go to
File
>Add Packages...
. - Enter the repository URL:
https://github.com/gandalf-network/connect-ios-sdk.git
. - Choose the version rule (e.g., “Up to Next Major”) and click
Add Package
. - Select the GandalfConnect package for your target.
Or Update Package.swift
Then, run swift package update
to fetch the dependency.
Usage
Import the package
Initialization
Create an instance of ConnectInput
with the necessary details:
Initialize the Connect
class:
Generating URL
To generate a URL, call the generateURL
method:
Read more on Github.
Finally, pull the data
Get Data Key
After your user is done linking their accounts, Connect will navigate to your redirectUrl
with a query
parameter called dataKey
.
You can use the packages to get the dataKey
easily.
Proceed by sending the dataKey to your server, where you can securely request the data you seek.
dataKey
directly
from your application’s server.Securely request the data (server-side)
Sauron Helper Packages
We provide packages that makes it super easy to interact with the Sauron API. They completely abstract away the complexity of authentication and interacting with the GraphQL APIs.
Installation
This will generate an eyeofsauron
folder in your project root directory.
Usage
Import the package
Get Activity
Get Traits
Read more on Github.
That’s all!