Format

A code link has the following format: https://<subdomain>.wwk.link/<code>.

Example

An example of the Code Link page for the Usage app, available at https://usage.wwk.link/NMB231. Simple Usage With Deep Links Usage

Setting Up

To configure the Code Link feature, go to its tab on the sidebar. Preview Link Sidebar

Subdomain

Subdomain is required to enable the Code Link feature. Preview Link Subdomain
Subdomain can be set only once.
Upload app icon.

Name

Name of the app.

Description

Short description of the app. Set the link to where your app is available. This can be a link to the App Store or website. See Deep Links for more configuration options. Deep links are used to open the app directly from the Code Link page. Configure a deep link for each platform where your app is available, or set a single deep link that works across all platforms.
Enter $code as part of your deep link url to receive a code value. For example, myapp://claim-code?code=$code will result in myapp://claim-code?code=XYZ123, when the code is XYZ123.
You are responsible for setting up the deep links handling in your app. When receiving a deep link, you can present a view, claim the received referral code, or implement any other functionality that suits your app’s needs.

Access

Swift SDK

The Code Link value is available on the User object as the referralCodeLink property. Get it from the singleton instance:
let referralCodeLink = Referrals.shared.user?.referralCodeLink
Or in a SwiftUI view from the observable object:
@State var referralsObservableObject = Referrals.shared.observableObject

...

Text(self.referralsObservableObject.user?.referralCodeLink ?? "-")
Learn more about Swift SDK.

TypeScript SDK

The Code Link value is available on the user object as the referral_code_link property.
const user = await winwinkit.fetchUser({ appUserId: "<app-user-id>" });
const referralCodeLink = user?.referral_code_link;

REST API

The Code Link value is part of the User object:
{
  "data": {
    "user": {
      "app_user_id": "821fae4b5-1a2d-4c1e-9152-5297086a161c",
      "referral_code": "XYZ123",
      "referral_code_link": "https://example.wwk.link/XYZ123",
      ...
    }
  }
}