Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getResourceByHash hash content how change? #37

Open
youqingkui opened this issue Apr 5, 2015 · 0 comments
Open

getResourceByHash hash content how change? #37

youqingkui opened this issue Apr 5, 2015 · 0 comments

Comments

@youqingkui
Copy link

In python

"""
get resource by its hash
 """
        hash_bin = hash_str.decode('hex')
        resource = self.note_store.getResourceByHash(self.note_guid, hash_bin, True, False, False);

this hash_bin in node how get?
i try it can't work

hashBin = new Buffer('hashStr', 'hex').toString()
noteStore.getResourceByHash noteGuid, 'hashBin', true, false, false, (err, data) ->
  if err
    return console.log err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant