Ejemplo n.º 1
0
func main() {
	//Load the Client ID from a file called config.txt
	api := instago.InstagramAPI{}
	clientId, _ := ioutil.ReadFile("config.txt")
	api.ClientID = string(clientId)

	fmt.Println("INSTAGO  DEMO")
	fmt.Println("=============")
	fmt.Println("Enter a user:"******"Username:"******"Full Name:", user.FullName)
	}

	//Present basic inforamtion about the user
	fmt.Println("More detail on @" + users[0].Username)
	user := api.UserDetail(users[0].ID)
	fmt.Println("ID:", user.ID)
	fmt.Println("Username:"******"Full name:", user.FullName)
	fmt.Println("Bio:", user.Bio)
	fmt.Println("Website:", user.Website)
	fmt.Println("Follows:", user.TotalFollows)
	fmt.Println("Followers:", user.TotalFollowers)
	fmt.Println("Images:", user.TotalImages)
}