# iOS Integration

If you are looking to integrate the offerwall into your iOS app, either open the offerwall in Safari or use a web view to show the offerwall inside your app.

### **URL**

```url
https://revtoo.com/offerwall/[API_KEY]/[USER_ID]
```

### **WebView Example**

```swift
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {

   var webView: WKWebView!

   override func loadView() {
       let webConfiguration = WKWebViewConfiguration()
       webView = WKWebView(frame: .zero, configuration: webConfiguration)
       webView.uiDelegate = self
       view = webView
   }
   override func viewDidLoad() {
       super.viewDidLoad()
       let myURL = URL(string:"https://revtoo.com/offerwall/[API_KEY]/[USER_ID]")
       let myRequest = URLRequest(url: myURL!)
       webView.load(myRequest)
   }}
```

{% hint style="info" %}
Replace **\[API\_KEY]** with your website API key and **\[USER\_ID]** by the unique identifier code of the user of your site who is viewing the wall.
{% endhint %}
