Added support for oEmbed. Needs testing.#3
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.
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!