Skip to content

tiantour/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}


About

golang free & no limit weather api

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages