Skip to content

Commit

Permalink
Merge pull request #707 from IABTechLab/gwh-APIDOCS-2604-uid2-mobile-…
Browse files Browse the repository at this point in the history
…environment-rename

updates to UID2 mobile docs based on input from DSC
  • Loading branch information
genwhittTTD authored Sep 17, 2024
2 parents 40e521a + c6280a7 commit 98fded7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 20 deletions.
15 changes: 10 additions & 5 deletions docs/guides/integration-mobile-client-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ By default, the SDK is configured to work with the UID2 production environment:
```js
UID2Manager.init(
context = this,
serverUrl = "https://operator-integ.uidapi.com"
UID2Manager.Environment.Custom("https://operator-integ.uidapi.com")
)
```

Expand All @@ -125,7 +125,7 @@ UID2Manager.init(

```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://operator-integ.uidapi.com")!
)
```
Expand Down Expand Up @@ -153,17 +153,22 @@ To specify a UID2 server that is not the default, you can change it in the `init
```js
UID2Manager.init(
context = this,
serverUrl = "https://global.prod.uidapi.com"
UID2Manager.Environment.Signapore
)
// or
UID2Manager.init(
context = this,
UID2Manager.Environment.Custom("https://global.prod.uidapi.com")
)
```

</TabItem>
<TabItem value='ios' label='iOS'>

```js
UID2Settings.shared.environment = .singapore
UID2Settings.shared.uid2Environment = .singapore
// or
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://global.prod.uidapi.com")!
)
```
Expand Down
15 changes: 10 additions & 5 deletions docs/guides/integration-mobile-client-side.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ By default, the SDK is configured to work with the UID2 production environment:
```js
UID2Manager.init(
context = this,
serverUrl = "https://operator-integ.uidapi.com"
UID2Manager.Environment.Custom("https://operator-integ.uidapi.com")
)
```

Expand All @@ -219,7 +219,7 @@ UID2Manager.init(

```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://operator-integ.uidapi.com")!
)
```
Expand Down Expand Up @@ -247,7 +247,12 @@ To specify a UID2 server that is not the default, you can make config changes, a
```js
UID2Manager.init(
context = this,
serverUrl = "https://global.prod.uidapi.com"
UID2Manager.Environment.Custom("https://global.prod.uidapi.com")
)
// or use a named environment
UID2Manager.init(
context = this,
UID2Manager.Environment.Sydney
)
```
Expand All @@ -256,11 +261,11 @@ UID2Manager.init(
```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://global.prod.uidapi.com")!
)
// or use a named environment
UID2Settings.shared.environment = .sydney
UID2Settings.shared.uid2Environment = .sydney
```
</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Token Refresh を Server-Side で管理し、クライアント/モバイルサ
```js
UID2Manager.init(
context = this,
serverUrl = "https://operator-integ.uidapi.com"
UID2Manager.Environment.Custom("https://operator-integ.uidapi.com")
)
```

Expand All @@ -125,7 +125,7 @@ UID2Manager.init(

```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://operator-integ.uidapi.com")!
)
```
Expand Down Expand Up @@ -153,17 +153,22 @@ UID2Settings.shared.environment = .custom(
```js
UID2Manager.init(
context = this,
serverUrl = "https://global.prod.uidapi.com"
UID2Manager.Environment.Signapore
)
// or
UID2Manager.init(
context = this,
UID2Manager.Environment.Custom("https://global.prod.uidapi.com")
)
```

</TabItem>
<TabItem value='ios' label='iOS'>

```js
UID2Settings.shared.environment = .singapore
UID2Settings.shared.uid2Environment = .singapore
// or
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://global.prod.uidapi.com")!
)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ SDK をアプリに追加したら、SDK を使用して UID2 Token を生成す
```js
UID2Manager.init(
context = this,
serverUrl = "https://operator-integ.uidapi.com"
UID2Manager.Environment.Custom("https://operator-integ.uidapi.com")
)
```

Expand All @@ -219,7 +219,7 @@ UID2Manager.init(

```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://operator-integ.uidapi.com")!
)
```
Expand Down Expand Up @@ -247,7 +247,12 @@ UID2Settings.shared.environment = .custom(
```js
UID2Manager.init(
context = this,
serverUrl = "https://global.prod.uidapi.com"
UID2Manager.Environment.Custom("https://global.prod.uidapi.com")
)
// or use a named environment
UID2Manager.init(
context = this,
UID2Manager.Environment.Sydney
)
```

Expand All @@ -256,11 +261,11 @@ UID2Manager.init(

```js
// Must be set before UID2Manager.shared is accessed
UID2Settings.shared.environment = .custom(
UID2Settings.shared.uid2Environment = .custom(
url: URL(string: "https://global.prod.uidapi.com")!
)
// or use a named environment
UID2Settings.shared.environment = .sydney
UID2Settings.shared.uid2Environment = .sydney
```

</TabItem>
Expand Down

0 comments on commit 98fded7

Please sign in to comment.