Compare commits

..

No commits in common. 'master' and '0.0.1' have entirely different histories.

@ -1,8 +1,8 @@
package mijia
package mijia_go_sdk
import (
"encoding/json"
"git.r-2.top/kunmeng/mijia/model"
"mijia-go-sdk/model"
"strconv"
)

@ -1,3 +1,3 @@
module git.r-2.top/kunmeng/mijia
module mijia-go-sdk
go 1.21.1
go 1.21

@ -1,4 +1,4 @@
package mijia
package mijia_go_sdk
import (
"crypto/hmac"

@ -1,4 +1,4 @@
package mijia
package mijia_go_sdk
// 小米认证授权信息
type Authorize struct {

@ -3,7 +3,7 @@ package test
import (
"encoding/json"
"fmt"
"git.r-2.top/kunmeng/mijia"
"mijia-go-sdk"
"testing"
"time"
)
@ -12,12 +12,12 @@ func Test_login(t *testing.T) {
user := "15542100924"
pwd := "1XAII@wsk"
result, _ := mijia.Login(user, pwd)
result, _ := mijia_go_sdk.Login(user, pwd)
_, err := json.Marshal(result)
if err != nil {
return
}
Mi := mijia.NewMiJia(result)
Mi := mijia_go_sdk.NewMiJia(result)
//Mi.Rooms()
Mi.Devices()
//Mi.Scenes(0)

Loading…
Cancel
Save