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

embedly requires API key #25

Open
jaap3 opened this issue Jan 19, 2012 · 9 comments
Open

embedly requires API key #25

jaap3 opened this issue Jan 19, 2012 · 9 comments

Comments

@jaap3
Copy link

jaap3 commented Jan 19, 2012

Using embed.ly as an endpoint is really cool, but requires an api key. It will work, but after a while the response will be a 403:

 403: Forbidden - Embedly has blocked your client ip. Sign up for an API key at http://embed.ly.

However, I don't see a way to supply an API key using djangoembed

@coleifer
Copy link
Contributor

Hmm...yeah, this definitely needs to be addressed. Looking into the best way to implement this. I'm somewhat kicking myself for writing the providers as database objects, would be nicer to have more programmatic control of them.

@jaap3
Copy link
Author

jaap3 commented Jan 19, 2012

This commit 813a34e makes it easier to include the key in the (activated) embedly providers.

I've been able to work around the issue in my case by passing a key= kwarg to request_resource, but that's only feasible if you use djangoembed programmaticaly. I'm assuming most people just use the templatetags.

@coleifer
Copy link
Contributor

Yeah, totally -- it's not a problem if you're doing by hand, but if you want it to "just work" with the tags it gets a little tricky -- the internal API of the app probably needs to be refactored. One option is to add arbitrary url parameters to a stored provider and just use those on every request, but it seems kinda gross.

@okke-formsma
Copy link

Why not look for a embed.ly key in the settings.py file?

@coleifer
Copy link
Contributor

coleifer commented Feb 7, 2012

yeah but you don't want to send your api key to youtube -- need to be able to specify "these" credentials -> "these" oembed providers

@coleifer
Copy link
Contributor

You may want to check out my new project: http://micawber.readthedocs.org/ it should be able to better handle embed.ly

@inactivist
Copy link

OK, so how do I provide my embed.ly key when using djangoembed? I don't see this documented anywhere.
Edit: Clarify question...

@inactivist
Copy link

@coleifer:
Thanks for that; yes, using Django. I haven't yet decided to use micawber (but may soon if I can't resolve this issue to my satisfaction)

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

4 participants