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

API doesn't need to be passed hashed emails #2

Closed
ndbroadbent opened this issue Apr 24, 2011 · 1 comment
Closed

API doesn't need to be passed hashed emails #2

ndbroadbent opened this issue Apr 24, 2011 · 1 comment

Comments

@ndbroadbent
Copy link
Contributor

I think the api has changed, and no longer needs a hashed array of emails. For example, the following code works now:

def use_user_image!(image_hash, emails)
emails = [emails] unless emails.is_a?(Array)
hash = call('grav.useUserimage', :userimage => image_hash, :addresses => emails)
expire_cache!
return hash
end

I would have submitted a pull request, but I didn't understand your 'dehashify_emails' method. So I've just hacked it up for now.

@sinisterchipmunk
Copy link
Owner

This is resolved in 51bfaef, #3.

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

2 participants