こちらのサイトの記事を参考にしました。 http://easyramble.com/rails-development-on-docker.html http://qiita.com/jnchito/…
This repository contains a set of simple client libraries for various Google APIs. These libraries are generated automatically from Discovery Documents, and the code generator is also hosted here in this repository. Each client provides: A client object that connects to the HTTP/JSON REST endpoint for the service. Ruby objects for data structures related to the service. Integration with the google
Facebook Graph APIの実験の為に、いろいろなサンプルアプリを作ったりしています。 本番用のアプリを作るときはRailsを採用したりするのですが、簡単にAPIを試すだけのサンプルの場合は、Sinatraを使ったほうがサクっと作れて便利ですよね。 そんなときは、Ruby OAuth2 gemとSinatraを使うと、「Facebookアカウントでのログインの仕組み」を簡単に実装することが出来たりします。 今回は、ボクが普段使っているサンプルコードを紹介したいと思います。 本当は Rack::Session::Pool を使いたいのですが、shotgunと併用するとうまくセッションが効いてくれなかったりすることもあり、Rack::Session::Cookieで我慢しています。 https://gist.github.com/998545 require 'rubygems' r
rubyのoauth2を使ってfacebookとのOAuth連携を試みてみた。環境は以下の通り。 ruby: 1.9.2p180 oauth2: 0.5.2 まずは、facebook認証のURLを生成するコードを書いてみる。 require 'oauth2' site = "https://graph.facebook.com" token_url= "/oauth/access_token" key="xxxx" # facebookのAPP ID secret="xxx" # facebookのAPP SECRET callback_url="http://xxx.com/" # callbackしてほしいURL #インスタンス作成 client = OAuth2::Client.new(key,secret,:site => site,:token_url => token_url)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く