func (api *API) StoreGetPath(key bmcrypto.KeyPair, addr hash.Hash, path string, recursive bool, since time.Time) (*StoreEntry, error) {
	pathHash := hash.New(addr.String() + path)

	recursiveStr := "0"
	if recursive {
		recursiveStr = "1"
	}
	sinceStr := "0"
	if !since.IsZero() {
		sinceStr = fmt.Sprintf("%d", since.Unix())
	}

	body, statusCode, err := api.Get(fmt.Sprintf("/account/%s/store/%s?recursive=%s&since=%s", addr.String(), pathHash.String(), recursiveStr, sinceStr))
	if err != nil {
		return nil, err
	}

	if statusCode < 200 || statusCode > 299 {
		return nil, errNoSuccess
	}

	entry := &store.EntryType{}
	err = json.Unmarshal(body, &entry)
	if err != nil {
		return nil, err
	}

	return decryptStoreEntry(key, entry)
}
// StoreGetPath will fetch an entry
StoreGetPath will fetch an entry
// StoreGetPath will fetch an entry
func (api *API) StoreGetPath(key bmcrypto.KeyPair, addr hash.Hash, path string, recursive bool, since time.Time) (*StoreEntry, error) {
	pathHash := hash.New(addr.String() + path)
	recursiveStr := "0"
	if recursive {
		recursiveStr = "1"
	}
	sinceStr := "0"
	if !since.IsZero() {
		sinceStr = fmt.Sprintf("%d", since.Unix())
	}
	body, statusCode, err := api.Get(fmt.Sprintf("/account/%s/store/%s?recursive=%s&since=%s", addr.String(), pathHash.String(), recursiveStr, sinceStr))
	if err != nil {
		return nil, err
	}
	if statusCode < 200 || statusCode > 299 {
		return nil, errNoSuccess
	}
	entry := &store.EntryType{}
	err = json.Unmarshal(body, &entry)
	if err != nil {
		return nil, err
	}
	return decryptStoreEntry(key, entry)
}
func ( api * API ) StoreGetPath ( key bmcrypto . KeyPair , addr hash . Hash , path string , recursive bool , since time . Time ) ( * StoreEntry , error ) { pathHash := hash . New ( addr . String ( ) + path ) recursiveStr := " " if recursive { recursiveStr = " " } sinceStr := " " if ! since . IsZero ( ) { sinceStr = fmt . Sprintf ( " " , since . Unix ( ) ) } body , statusCode , err := api . Get ( fmt . Sprintf ( " " , addr . String ( ) , pathHash . String ( ) , recursiveStr , sinceStr ) ) if err != nil { return nil , err } if statusCode < 200 || statusCode > 299 { return nil , errNoSuccess } entry := & store . EntryType { } err = json . Unmarshal ( body , & entry ) if err != nil { return nil , err } return decryptStoreEntry ( key , entry ) }
StoreGetPath will fetch an entry
StoreGetPath will fetch an entry