Skip to content

Commit

Permalink
feat: Add readme instructions on how to install previous handwritten …
Browse files Browse the repository at this point in the history
…sdk version (#93)

* Add readme instructions on how to install handwritten sdk

* Update the instruction

* ci: Generate code

---------

Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
andrii-balitskyi and seambot authored Feb 22, 2024
1 parent 0fb71ce commit 2835043
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ $seam->access_codes->delete($access_code->access_code_id);

## Installation

Run `composer require seamapi/seam`
To install the latest version of the automatically generated SDK, run:

`composer require seamapi/seam`

If you want to install our previous handwritten version, run:

`composer require seamapi/seam:1.1`

## Development Setup

Expand Down
4 changes: 4 additions & 0 deletions src/Objects/Device.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions src/Objects/DeviceHoneywellMetadata.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/Objects/DeviceProperties.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Objects/Phone.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 116 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,45 @@ public function revoke_access_to_device(



}

public function update(
string $user_identity_id,
string $user_identity_key = null,
string $email_address = null,
string $phone_number = null,
string $full_name = null
): void {
$request_payload = [];

if ($user_identity_id !== null) {
$request_payload["user_identity_id"] = $user_identity_id;
}
if ($user_identity_key !== null) {
$request_payload["user_identity_key"] = $user_identity_key;
}
if ($email_address !== null) {
$request_payload["email_address"] = $email_address;
}
if ($phone_number !== null) {
$request_payload["phone_number"] = $phone_number;
}
if ($full_name !== null) {
$request_payload["full_name"] = $full_name;
}

$this->seam->request(
"POST",
"/user_identities/update",
json: $request_payload,

);






}

}
Expand Down Expand Up @@ -3518,6 +3557,33 @@ public function __construct(SeamClient $seam)
}


public function add_to_access_group(
string $acs_user_id,
string $acs_access_group_id
): void {
$request_payload = [];

if ($acs_user_id !== null) {
$request_payload["acs_user_id"] = $acs_user_id;
}
if ($acs_access_group_id !== null) {
$request_payload["acs_access_group_id"] = $acs_access_group_id;
}

$this->seam->request(
"POST",
"/acs/users/add_to_access_group",
json: $request_payload,

);






}

public function create(
string $acs_system_id,
array $acs_access_group_ids = null,
Expand Down Expand Up @@ -3671,6 +3737,33 @@ public function list_accessible_entrances(



}

public function remove_from_access_group(
string $acs_user_id,
string $acs_access_group_id
): void {
$request_payload = [];

if ($acs_user_id !== null) {
$request_payload["acs_user_id"] = $acs_user_id;
}
if ($acs_access_group_id !== null) {
$request_payload["acs_access_group_id"] = $acs_access_group_id;
}

$this->seam->request(
"POST",
"/acs/users/remove_from_access_group",
json: $request_payload,

);






}

public function revoke_access_to_all_entrances(
Expand Down Expand Up @@ -4509,6 +4602,29 @@ public function __construct(SeamClient $seam)
}


public function delete(
string $enrollment_automation_id
): void {
$request_payload = [];

if ($enrollment_automation_id !== null) {
$request_payload["enrollment_automation_id"] = $enrollment_automation_id;
}

$this->seam->request(
"POST",
"/user_identities/enrollment_automations/delete",
json: $request_payload,

);






}

public function get(
string $enrollment_automation_id
): void {
Expand Down

0 comments on commit 2835043

Please sign in to comment.