aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/apidocs/index.html.haml
blob: 978a72cca429910a7dba3c41b58113fd8b005c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- title "aclog API"
.container
  .row
    .col-sm-3.sidebar
      = render_sidebar_content
    .col-sm-9
      %h2 OAuth
      %p ツイートを非公開にしているアカウントの情報にアクセスするには本人であるか、対象のアカウントをフォローしている必要があります。Aclog API では、その認証に OAuth Echo を使用します。
      %p OAuth Echo を使用するには以下のリクエストヘッダを使用します。
      %pre
        %code
          :preserve
            X-Auth-Service-Provider: https://api.twitter.com/1.1/account/verify_credentials.json
            X-Verify-Credentials-Authorization: OAuth rea...
      OAuth Echo の詳細については
      %a{href: "#"} Twitter のドキュメント
      を参照してください。
      %h2 Endpoints
      - @apidocs.values.inject(:merge).each do |namespace, endpoints|
        %h3= namespace.titleize
        %table.table
          %tbody
            - endpoints.reject {|_, e| e.route_nodoc }.each do |action, endpoint|
              %tr
                %td= link_to format_endpoint_name(endpoint), about_api_endpoint_path(endpoint.route_method.downcase, namespace, action), class: (endpoint.route_deprecated ? "deprecated" : nil)
                %td= endpoint.route_description