---
# System prepended metadata

title: gadi-ios-agent

---

# gadi-ios-agent

## Requirements
* Xcode 10+

## Installation (**In iOS - objc**)

* Add the following line in your Podfile
```
pod 'gadi-ios-agent', :path => './gadi-ios-agent/'
```
**Note:** in above line `path` can be set to the location of `.podspec` file if the sdk is added locally

* Execute following commands at root project in terminal
```
1. pod repo update
2. pod install
```

## Methods
**1. createDigitalAddress( NSString apiEndpoint, NSData userDocuments ) -> NSString response**
---
This method sends an api request to `DAP` to create a digital address for the `Holder`.
This method will return response in `NSString`

`apiEndpoint`: NSString - endpoint specifying the route where the holder should request the `DAP` for creation of digital address.
`userDocument`: NSData - an array of holder documents to be sent to `DAP` as a post request payload.

**Example** Coming soon!

**2. getDigitalAddress() -> NSString digitalAddress**
---
This method returns the digital address generated by `DAP` and saved in local database by `createDigitalAddress` method.

**Example** Coming soon!