Skip to content

Commit a945d87

Browse files
louis-preclaude
andcommitted
fix: Fix = vs : in JS/Ruby/PHP named args and missing PHP comma
Fixes acs_system_ids using = instead of : in JavaScript object literals, Ruby keyword arguments, and PHP named parameters across encoder-related code samples. Also fixes a missing comma in PHP code in mapping-your-resources-to-seam-resources.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b69936d commit a945d87

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/brand-guides/assa-abloy-visionline-access-control-system/creating-visionline-card-based-credentials.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const credential = await seam.acs.credentials.create({
5959
// Encode the credential onto a card.
6060
// First, get the encoder that you want to use.
6161
const encoder = (await seam.acs.encoders.list({
62-
acs_system_ids = ["11111111-1111-1111-1111-111111111111"]
62+
acs_system_ids: ["11111111-1111-1111-1111-111111111111"]
6363
}))[0];
6464

6565
# Then, encode the card.
@@ -335,7 +335,7 @@ credential = seam.acs.credentials.create(
335335
# Encode the credential onto a card.
336336
# First, get the encoder that you want to use.
337337
encoder = (seam.acs.encoders.list(
338-
acs_system_ids = ["11111111-1111-1111-1111-111111111111"]
338+
acs_system_ids: ["11111111-1111-1111-1111-111111111111"]
339339
))[0]
340340

341341
# Then, encode the card.
@@ -413,7 +413,7 @@ $credential = $seam->acs->credentials->create(
413413
// Encode the credential onto a card.
414414
// First, get the encoder that you want to use.
415415
$encoder = $seam->acs->encoders->list(
416-
acs_system_ids = ["11111111-1111-1111-1111-111111111111"]
416+
acs_system_ids: ["11111111-1111-1111-1111-111111111111"]
417417
)[0];
418418

419419
// Then, encode the card.

docs/brand-guides/salto-proaccess-space-access-system/programming-salto-space-card-based-credentials.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const cardCredential = await seam.acs.credentials.create({
8282
// Encode the credential onto a card.
8383
// First, get the encoder that you want to use.
8484
const encoder = (await seam.acs.encoders.list({
85-
acs_system_ids = [building_a.acs_system_id]
85+
acs_system_ids: [building_a.acs_system_id]
8686
}))[0];
8787

8888
// Then, encode the card.
@@ -393,7 +393,7 @@ card_credential = seam.acs.credentials.create(
393393
# Encode the credential onto a card.
394394
# First, get the encoder that you want to use.
395395
encoder = (seam.acs.encoders.list(
396-
acs_system_ids = [building_a.acs_system_id]
396+
acs_system_ids: [building_a.acs_system_id]
397397
))[0]
398398

399399
# Then, encode the card.
@@ -484,7 +484,7 @@ $card_credential = $seam->acs->credentials->create(
484484
// Encode the credential onto a card.
485485
// First, get the encoder that you want to use.
486486
$encoder = $seam->acs->encoders->list(
487-
acs_system_ids = [$building_a->acs_system_id]
487+
acs_system_ids: [$building_a->acs_system_id]
488488
)[0];
489489

490490
// Then, encode the card.

docs/guides/capability-guides/access-systems/acs-quick-starts/encodable-key-card-quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ For more information, see [Working with Card Encoders and Scanners](../working-w
550550
```javascript
551551
// Get the encoder that you want to use.
552552
const encoder = (await seam.acs.encoders.list({
553-
acs_system_ids = [acsSystemId]
553+
acs_system_ids: [acsSystemId]
554554
}))[0];
555555
556556
// Encode the card.
@@ -701,7 +701,7 @@ ActionAttempt(
701701
```ruby
702702
# Get the encoder that you want to use.
703703
encoder = (seam.acs.encoders.list(
704-
acs_system_ids = [acs_system_id]
704+
acs_system_ids: [acs_system_id]
705705
))[0]
706706
707707
# Encode the card.
@@ -745,7 +745,7 @@ seam.action_attempts.get(
745745
```php
746746
// Get the encoder that you want to use.
747747
$encoder = $seam->acs->encoders->list(
748-
acs_system_ids = [$acs_system_id]
748+
acs_system_ids: [$acs_system_id]
749749
)[0];
750750
751751
// Encode the card.

docs/guides/core-concepts/mapping-your-resources-to-seam-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ seam.access_grants.create(
902902
$seam->access_grants->create(
903903
user_identity_id: $user_identity->user_identity_id,
904904
starts_at: "2025-08-13T15:00:00.000Z",
905-
ends_at: "2025-08-16T11:00:00.000Z"
905+
ends_at: "2025-08-16T11:00:00.000Z",
906906
requested_access_methods: [
907907
["mode" => "mobile_key"]
908908
],

docs/guides/industry-guides/hospitality-industry-guide/additional-guest-access-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ seam.access_grants.create(
666666

667667
# Encode the new card.
668668
encoder = (seam.acs.encoders.list(
669-
acs_system_ids = [hotel_a.acs_system_id]
669+
acs_system_ids: [hotel_a.acs_system_id]
670670
))[0]
671671

672672
encoding_action_attempt = seam.access_methods.encode(
@@ -739,7 +739,7 @@ $seam->access_grants->create(
739739

740740
// Encode the access method onto a card.
741741
$encoder = $seam->acs->encoders->list(
742-
acs_system_ids = [$hotel_a->acs_system_id]
742+
acs_system_ids: [$hotel_a->acs_system_id]
743743
)[0];
744744

745745
$encoding_action_attempt = $seam->access_methods->encode(

docs/guides/industry-guides/hospitality-industry-guide/granting-access-using-encoded-plastic-key-cards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ ActionAttempt(
573573
```ruby
574574
# First, get the encoder that you want to use.
575575
encoder = (seam.acs.encoders.list(
576-
acs_system_ids = [hotel_a.acs_system_id]
576+
acs_system_ids: [hotel_a.acs_system_id]
577577
))[0]
578578

579579
# Then, encode the card.
@@ -616,7 +616,7 @@ seam.action_attempts.get(
616616
```php
617617
// First, get the encoder that you want to use.
618618
$encoder = $seam->acs->encoders->list(
619-
acs_system_ids = [$hotel_a->acs_system_id]
619+
acs_system_ids: [$hotel_a->acs_system_id]
620620
)[0];
621621

622622
// Then, encode the card.

0 commit comments

Comments
 (0)