Skip to content

ilyagordeev/go-tplink-cloud-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang bindings for the TP-Link smart devices API

Init version

This build works only with hs100/110

##Installation go get github.com/ilyagordeev/go-tplink-cloud-api

##Example

package main

import (
"fmt"
"github.com/ilyagordeev/go-tplink-cloud-api"
"os"
"time"
)

func main() {

    tplinkcloudapi.Login(os.Getenv("TPLINK_USERNAME"), os.Getenv("TPLINK_PASSWORD"))

    fmt.Println(tplinkcloudapi.SwitchOn())

    tplinkcloudapi.GetRealtime()

}

About

Golang bindings for the TP-Link smart devices API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages