MettaGo API
  1. Basic Interfaces
MettaGo API
  • README.md
  • Basic Interfaces
    • Get Product Info
      GET
    • Set Date and Time
      GET
    • Get Media Info
      GET
    • Get Device Info
      GET
    • Get Storage Info
      GET
    • Get Record Duration
      GET
    • Get Battery Info
      GET
  • Basic Setting
    • Query All Setting
      GET
    • Query Parameters Items
      GET
    • Query One Setting
      GET
  • Device Management
    • Let Device Know App Enter Playback Page
      GET
    • Let Device Know App Enter Setting Page
      GET
    • Let Device Know App Connect Successfully
      GET
    • Let Device Know App Disconnect Successfully
      GET
    • Set Parameter
      GET
    • Take Snapshot
      GET
    • Let Device Know App Exit Playback Page
      GET
    • Let Device Know App Exit Setting Page
      GET
    • Format SD/TF Card
      GET
    • Restore Factory Settings
      GET
  • Device File Management
    • Paging Query File List
      GET
    • Get Thumbnail of a File
      GET
    • Download a File
      GET
    • Delete a File
      GET
  1. Basic Interfaces

Get Battery Info

Developing
Prod Env
http://192.168.169.1
Prod Env
http://192.168.169.1
GET
/app/getbatteryinfo

Request

None

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://192.168.169.1/app/getbatteryinfo'

Responses

🟢200Success
application/json
Body
result
integer 
required
info
object (BatteryInfo) 
required
capacity
integer 
required
charge
integer 
required
Example
{
    "result": 0,
    "info": {
        "capacity": 0,
        "charge": 0
    }
}
Modified at 2023-08-14 10:31:54
Previous
Get Record Duration
Next
Query All Setting
Built with