Skip to content

Commit

Permalink
segment_api.md: Fix highlighted lines
Browse files Browse the repository at this point in the history
One line added in aeee20a but the highlighted line wasn't updated.

(renaming from docs/api/public_php_api_managing_users.md to docs/users/segment_api.md in a9031bd)
  • Loading branch information
adriendupuis committed Jul 10, 2024
1 parent b89b93c commit 5819ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/users/segment_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Similarly, you can load a Segment in a group by using `SegmentationService::load
You can check whether a User is assigned to a Segment with `SegmentationService::isUserAssignedToSegment()`:

``` php
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 65, 69) =]]
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 66, 71) =]]
```

## Assigning Users

To assign a User to a Segment, use `SegmentationService::assignUserToSegment()`:

``` php
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 64, 66) =]]
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 64, 65) =]]
```

## Creating Segments
Expand All @@ -48,14 +48,14 @@ To create a Segment Group, use `SegmentationService::createSegmentGroup()`
and provide it with a `SegmentGroupCreateStruct`:

``` php
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 37, 44) =]]
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 38, 45) =]]
```

To add a Segment, use `SegmentationService::createSegment()`
and provide it with a `SegmentCreateStruct`, which takes an existing group as one of the parameters:

``` php
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 45, 52) =]]
[[= include_file('code_samples/api/public_php_api/src/Command/SegmentCommand.php', 46, 53) =]]
```

## Updating Segments
Expand Down

0 comments on commit 5819ffd

Please sign in to comment.