Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add readme instructions on how to install previous handwritten sdk version #93

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading