An open API service indexing awesome lists of open source software.

https://github.com/omushpapa/tplinkapi


https://github.com/omushpapa/tplinkapi

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# tplinkapi

This library provides an (unofficial) interface for interacting with a Tp-Link Router. It only works with Ipv4 addresses.

Tested with TL-WR840N.

This is still work in progress.

# Example
```Go
package main

import (
"fmt"
"os"
)

func main() {
Service RouterService = RouterService{
Username: os.Getenv("USERNAME"),
Password: os.Getenv("PASSWORD"),
Address: os.Getenv("ADDRESS"),
}

routerInfo, err := Service.GetRouterInfo()
if err != nil {
exitWithError(err)
}
fmt.Printf("Info: %+v\n", routerInfo)
}
```