MyGit

akinozgen/genieacs-helper-php

Fork: 5 Star: 11 (更新于 2024-12-20 10:56:41)

license: GPL-3.0

Language: PHP .

最后发布版本: 1.0.0 ( 2021-11-12 23:18:40)

GitHub网址

A genieacs api helper class for php

Configuration

Open service.php and edit const URL = 'http://__SOMETHING__:7557'; line to your api endpoint. Yes thats the config


Methods

  • getAllDevices(): Returns all device records as array.
  • getDeviceById(string $device_uuid): Returns specific device by given id. Usually its a UUIDv4
  • getDevicesByQuery(array $query): Returns devices that matches the query array eg $query = ['id' => 'caf73be0-ee11-40dd-92aa-f6f2e3d387a1']
  • getDevicesByTags(array $tags): Returns all devices that matches the given tags array.
  • deleteDevice(string $device_uuid): Simply deletes the specified device.
  • addTag(string $device_uuid, string $tag): Adds a tag to the device.
  • removeTag(string $device_uuid, string $tag): Removes the tag from device.
  • getFiles(): Returns uploaded firmware files as array.
  • uploadFile(string $local_path, string $filename): Uploads the given $local_path file to the server.
    • $local_path`: Local fullpath of the target file
    • $filename`: Name of the file in the server.
  • deleteFile(string $filename): Deletes the file from server.
  • faults(string $device_uuid): Returns faults records for a specific device.
  • getParameterValues(string $parameters, string $device_uuid): Returns specified paramters from the specified device. Possible parameters are located at ./parameters.php
  • setParameterValues(string $parameters, string $device_uuid): Changes given devices parameter. $paramters should be key value pair.
  • refreshObject(string $parameters, string $device_uuid): Reloads the value of the given parameter from actual device.
  • refreshAllObjects(string $device_uuid): Reloads all values of the given device.
  • reboot(string $device_uuid): Reboots the device.
  • factoryReset(string $device_uuid): Makes a factory reset request to device.
  • pendingTasks(string $device_uuid): Get awaiting tasks of the device.
  • getParameters(array|string $parameters, string $device_uuid): Get specified parameters of the device.
  • getTasks(string $device_uuid): Get all tasks of the device.
  • dispatchAction(string $op, string $device_uuid): Dispatch an action on the device. $op must be reset, reboot, delete or refresh.
  • deleteTask(string $device_uuid, string $task_id): Delete the given task. No matter what would be the outcome of this ruthless action.

𝒯𝒽𝒶𝓉'𝒶 𝒶𝓁𝓁 𝒻𝑜𝓁𝓀𝓈...

最近版本更新:(数据更新于 2024-09-07 14:54:45)

2021-11-12 23:18:40 1.0.0

主题(topics):

genieacs, genieacs-gui, php, tr-069, tr069

akinozgen/genieacs-helper-php同语言 PHP最近更新仓库

2024-12-13 19:38:03 coollabsio/coolify

2024-12-13 09:22:46 w7corp/easywechat

2024-12-11 20:15:22 symfony/symfony

2024-11-29 16:49:37 symfony/var-dumper

2024-11-20 23:58:25 laravel/framework

2024-11-20 18:39:23 danielmiessler/SecLists