code: func ImportReader(r io.Reader) (*Instagram, error) {
  	url, err := neturl.Parse(goInstaAPIUrl)
  	if err != nil {
  		return nil, err
  	}
  
  	bytes, err := ioutil.ReadAll(r)
  	if err != nil {
  		return nil, err
  	}
  
  	config := ConfigFile{}
  	err = json.Unmarshal(bytes, &config)
  	if err != nil {
  		return nil, err
  	}
  	inst := &Instagram{
  		user:      config.User,
  		dID:       config.DeviceID,
  		uuid:      config.UUID,
  		rankToken: config.RankToken,
  		token:     config.Token,
  		pid:       config.PhoneID,
  		c: &http.Client{
  			Transport: &http.Transport{
  				Proxy: http.ProxyFromEnvironment,
  			},
  		},
  	}
  	inst.c.Jar, err = cookiejar.New(nil)
  	if err != nil {
  		return inst, err
  	}
  	inst.c.Jar.SetCookies(url, config.Cookies)
  
  	inst.init()
  	inst.Account = &Account{inst: inst, ID: config.ID}
  	inst.Account.Sync()
  
  	return inst, nil
  }
docs: // ImportReader imports instagram configuration from io.Reader
  //
  // This function does not set proxy automatically. Use SetProxy after this call.