-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added support for oEmbed. Needs testing. #3
base: master
Are you sure you want to change the base?
Conversation
Awesome work! One quick way to test it would be to just open a ruby console, require the documentcloud main lib file, and then try creating a client and then running through the oembed methods you introduced. If it throws an unexpected error when you run a command, then you have something to debug! I do want to add an actual test suite to the thing, hopefully in the next few days. I'll leave this PR open until you respond saying you tried it out and think it's good to go! Thanks again @throoze, you rock |
I'm having problems to authenticate. I did:
in irb console, but i'm always getting |
Verify the email/password is correct. Then, you can use it more easily in the command line by use invoking your own DocumentCloud::Client instance in IRB: Then all the commands you would normally use DocumentCloud.whatever() to call, you can just do See if that works |
Thanks! already on that. An extra step is needed, since email and password are not escaped by default.
I'll change that :) but I noticed this code on client initialization:
Should every key be escaped? or only email and password? So far, I've only noticed these two keys being used in Also, since it may break rails expected behavior, ill set an Please let me know any thoughts on this. I'll let you know when changes are pushed. Kind Regards, |
@width = attrs[:width] | ||
@html = attrs[:html] | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the empty spaces before the "end" statements and I'm good with merging this :)
Hi! i really don't know how to test this code, but it should work. If you could please test it and let me know if it works, it would be nice! If it doesn't, i think it should require just small corrections.
A better option could be for you to tell me how to test it. I would really appreciate it, and I would let you know when its working.
Thanks!