You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
module Twitter class API < Grape::API version 'v1', using: :header, vendor: 'twitter' format :json prefix :api helpers do def current_user @current_user ||= User.authorize!(env) end def authenticate! error!('401 Unauthorized', 401) unless current_user end end resource :statuses do desc 'Return a public timeline.' get :public_timeline do Status.limit(20) end desc 'Return a personal timeline.' get :
板一覧取得用 URL http://nichanapi.appspot.com/get_bbstable パラメータ callback: callback関数名、省略時はcallbackが使われる 例 http://nichanapi.appspot.com/get_bbstable http://nichanapi.appspot.com/get_bbstable?callback=get_bbs subject取得用 URL http://nichanapi.appspot.com/get_subject パラメータ url: 板のURL(必須) callback: callback関数名、省略時はcallbackが使われる 例 http://nichanapi.appspot.com/get_subject?url=http://love6.2ch.net/aasaloon/ dat
We’re adding an API bit by bit. This page will serve as the documentation. The basic url template: http://github.com/api/version/format/username/repository/type/object Current version: v1 Acceptable formats: json, xml, yaml Acceptable types: commits, commit Grabbing all recent commits: $ curl -i http://github.com/api/v1/xml/caged/gitnub/commits/master | less Grabbing a single commit: $ curl -i htt
_ Amazon WebサービスにHTTP/1.1でアクセスするとゴミが出る Zend_Http_Clientをincubatorバージョンに変えてテストしていたら、Zend_Service_Amazonの動作がおかしい*1。なんでかなーと原因をたどっていったら、Amazon WebサービスへのリクエストがHTTP/1.0からHTTP/1.1に変わったことが原因だった。 以下再現コード。HTTP/1.1でのリクエスト。 $socket = fsockopen('webservices.amazon.co.jp', 80); fwrite($socket, "GET /onca/xml?ResponseGroup=Request&SubscriptionId=[Subscription ID]&Service=AWSECommerceService&Operation=ItemLookup&
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く