I have created a video streaming site, so thought I'd try to implement my own oembed provider for this site. After reading the oembed specs and testing you tube and vimeo's own oembed endpoints I have implemented one for my site.
Now as far as I can tell it follows the spec exactly, but I can't work out how to properly test it. Does anyone know of an oembed provider testing suite?
We have faced the same problem. The only way we found to test our oEmbed provider is embed.ly website, where you can paste your url.
Related
I am looking at the documentation on Resumable Uploads, and I noticed that I need to use OAuth for creating an application for other people.
However, I would like to use this protocol for myself, and see what I can do with it. Is there any demo Oauth that I can do, or another way to authenticate (but for my personal self?)
For browser-side scripting, there's Google’s Client Library for Browser-side JavaScript, GAPI. See the official document Javascript Quickstart for the initial steps you have to be going through.
Then look into the resumable upload implementation provided by Google:
upload_video.js, and
cors_upload.js.
Once again, your app has to implement one one way or another an OAuth 2.0 authentication/authorization flow, if you'll not make use of GAPI. (See this doc too.)
The official document w.r.t. the kind of authentication/authorization required by your app is: OAuth 2.0 for Client-side Web Applications.
we are trying to implement single sign on, across multiple domains, but using the same web application under IIS. We have checked some solutions like SAML and OAuth however we are not sure we need anyone of these two. We dont know how we could share the cookie accross the domains, I dont think it's possible but correct me if I'm wrong.
We have looked at google's solution when you go to youtube and you are authenticated with your google account it pulls out your username and your info, but we have no idea how they do this, because it's another domain so the cookie should not travel to youtube. If you have any suggestions on how to do this they more than welcome.
You may take a look at the following blog post in which Jeff Atwood explains the mechanism used by the StackExchange network to support cross domain single-sign-on relying on HTML5 Local Storage. And here are some more technical details.
does anybody work with foursquare api and asp.net, do you know some basic tutorial, how to set the environment, do I need some api, how can I make my app to conect to 4sq and ask something. I work with asp.net mvc2, and any clue on this would be helpful.
Thanks in advance.
There are a couple of C# libraries available for the foursquare API, you can see the complete list here:
https://developer.foursquare.com/docs/libraries.html
In terms of tutorials, you can use the interactive query viewer on the foursquare website to get a sense of the data:
https://developer.foursquare.com/docs/venues/venues.html
(click 'try it now' and it will give you an interactive query console for the api!)
You can also get a walkthrough of how to do OAuth2 authentication on the website too:
https://developer.foursquare.com/docs/oauth.html
For what it's worth, when I was first playing with the API I found it useful to test out all of my queries using cURL, then once you use a library you're already a pro.
Hope that helps?
I am trying to use the PredictionSample in google-api-java-client, but with ClientLogin authentication it gives me error:
User is not a trusted tester
I have activated the Google Prediction API in my APIs Console project. And I am able to run the Hello World prediction example from http://code.google.com/apis/predict/docs/hello_world.html with the same user. It uses oacurl and oauth2.
But it does not work with google-api-java-client. I am also not able to make oauth2 work with google-api-java-client.
I have searched the documentation and samples and have found no solution. Is it possible to do what is done in the hello_world example using the google-api-java-client.
I ran into a similar problem using Blogger API in my Google APP Engine Project. Attached is the link to the Stackoverflow question and sample code I was able to get working. Hope it helps.
Proper Form of API request to Blogger using Java/App Engine -error 401
I found the gmail_xoauth gem, which does most of what I need, but I also need to generate the oauth tokens (consumer_key and consumer_secret) from inside Rails3.
I am trying to integrate Gmail's oauth integration into my site and hence cannot use the python script that the above gem refers to. I would like my site to take the user to the authentication page and extract the consumer_key/secret tokens.
I am new to OAuth, so maybe there's something obvious that I am missing.
UPDATE: I solved the above, and have written a blog post with the details (since its too big to fit here).
http://blog.asif.in/blog/2012/03/03/google-oauth-and-rails/
You may want to check out OmniAuth. It's a gem that encapsulates/abstracts a lot of the underlying protocol work that must be done for OAuth, as well as other authentication/authorization protocols like OpenID and LDAP. I'm not well versed on Google's API for sending/receiving email, but authenticating is the first step.
The OmniAuth wiki has a very good tutorial on using it with OpenID and Google Apps, although this may not be quite what you're looking for when it comes to IMAP. You may need to write your own provider for OmniAuth (a good tutorial describing this is available). Google also provides a reference site for authenticating/authorizing via IMAP and OAuth. The most relevant part of that to you would most likely be the page detailing the protocol.
Hope that helps!
I'm not going to write the full code for you, but do you know PHP? You could have a look at the way this example works:
http://googlecodesamples.com/docs/php/Docs.php
...then make something similar in Ruby.
This is a Google Code Sample from the following site:
http://googlecodesamples.com/