weather

module
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT

README

weather

weather skd for tianqiapi.com v91

how to use

package main

import (
	"fmt"

	"github.com/tiantour/weather/sojson"
	"github.com/tiantour/weather/tianqiapi"
)

func main() {
	// use sojson
	x, err := sojson.NewWeather().Fetch("101030100")
	fmt.Println(x, err)

	// use tianqiapi
	tianqiapi.AppID = 0
	tianqiapi.AppSecret = "your appsecret"
	y, err := tianqiapi.NewWeather().Fetch("101030100")
	fmt.Println(y, err)
}


Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL