# Class Opencart\Admin\Model\User\Api

`extends` | `Model`

Class Api

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\User\Api

Located at admin\model\user\api.php

Methods
`public` | `addApi(array<string, mixed> $data): int` Add Api Add Api | #
`public` | `editApi(int $api_id, array<string, mixed> $data): void` Edit Api Edit Api | #
`public` | `deleteApi(int $api_id): void` Delete Api Delete Api | #
`public` | `getApi(int $api_id): array<string, mixed>` Get Api Get Api | #
`public` | `getApis(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Apis Get Apis | #
`public` | `getTotalApis(): int` Get Total Apis Get Total Apis | #
`public` | `addIp(int $api_id, string $ip): void` Add Ip Add Ip | #
`public` | `deleteIps(int $api_id): void` Delete Ips Delete Ips | #
`public` | `getIps(int $api_id): array<int, string>` Get Ips Get Ips | #
`public` | `addSession(int $api_id, string $session_id, string $ip): int` Add Session Add Session | #
`public` | `getSessions(int $api_id): array<int, array<string, mixed>>` Get Sessions Get Sessions | #
`public` | `deleteSession(int $api_session_id): void` Delete Session Delete Session | #
`public` | `deleteSessionsBySessionId(string $session_id): void` Delete Session By Session ID Delete Session By Session ID | #

Methods inherited from Opencart\System\Engine\Model
`__construct(), __get(), __set(), __isset()`

Properties inherited from Opencart\System\Engine\Model
`$registry`

OpenCart API API documentation generated by ApiGen dev-master