Skip to content

openwonk/worldbank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

World Bank API Client

Library provides access to the World Bank API. No registration key is necessary.

###Usage

package main

import (
	bank "github.com/openwonk/worldbank"
	"fmt"
)

func main() {
	s := bank.Series{
		Language: "en",

		Countries: []string{
			"bra",
			"chn",
		},
		Indicators: []string{
			"SP.POP.TOTL",
		},
		Start:     bank.Date{Year: "2011", Subunit: "Q2"},
		End:       bank.Date{Year: "2013", Subunit: "Q4"},
		Format:    "json",
		Frequency: "Q",
	}

	s.Querify()
	s.Request()
	s.Write("test.json")
	s.Reset()
	fmt.Println(s)

}



OpenWonk © 2015 MIT License

About

World Bank API Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages