|
| 1 | +<!DOCTYPE html> |
| 2 | + |
| 3 | +<html> |
| 4 | +<head> |
| 5 | +<meta charset="UTF-8"> |
| 6 | + |
| 7 | +<title>class DropboxApi::Authenticator - RDoc Documentation</title> |
| 8 | + |
| 9 | +<script type="text/javascript"> |
| 10 | + var rdoc_rel_prefix = "../"; |
| 11 | + var index_rel_prefix = "../"; |
| 12 | +</script> |
| 13 | + |
| 14 | +<script src="../js/jquery.js"></script> |
| 15 | +<script src="../js/darkfish.js"></script> |
| 16 | + |
| 17 | +<link href="../css/fonts.css" rel="stylesheet"> |
| 18 | +<link href="../css/rdoc.css" rel="stylesheet"> |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +<body id="top" role="document" class="class"> |
| 23 | +<nav role="navigation"> |
| 24 | + <div id="project-navigation"> |
| 25 | + <div id="home-section" role="region" title="Quick navigation" class="nav-section"> |
| 26 | + <h2> |
| 27 | + <a href="../index.html" rel="home">Home</a> |
| 28 | + </h2> |
| 29 | + |
| 30 | + <div id="table-of-contents-navigation"> |
| 31 | + <a href="../table_of_contents.html#pages">Pages</a> |
| 32 | + <a href="../table_of_contents.html#classes">Classes</a> |
| 33 | + <a href="../table_of_contents.html#methods">Methods</a> |
| 34 | + </div> |
| 35 | +</div> |
| 36 | + |
| 37 | + <div id="search-section" role="search" class="project-section initially-hidden"> |
| 38 | + <form action="#" method="get" accept-charset="utf-8"> |
| 39 | + <div id="search-field-wrapper"> |
| 40 | + <input id="search-field" role="combobox" aria-label="Search" |
| 41 | + aria-autocomplete="list" aria-controls="search-results" |
| 42 | + type="text" name="search" placeholder="Search" spellcheck="false" |
| 43 | + title="Type to search, Up and Down to navigate, Enter to load"> |
| 44 | + </div> |
| 45 | + |
| 46 | + <ul id="search-results" aria-label="Search Results" |
| 47 | + aria-busy="false" aria-expanded="false" |
| 48 | + aria-atomic="false" class="initially-hidden"></ul> |
| 49 | + </form> |
| 50 | +</div> |
| 51 | + |
| 52 | + </div> |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + <div id="class-metadata"> |
| 57 | + |
| 58 | + <div id="parent-class-section" class="nav-section"> |
| 59 | + <h3>Parent</h3> |
| 60 | + |
| 61 | + |
| 62 | + <p class="link">OAuth2::Client |
| 63 | + |
| 64 | +</div> |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + <!-- Method Quickref --> |
| 69 | +<div id="method-list-section" class="nav-section"> |
| 70 | + <h3>Methods</h3> |
| 71 | + |
| 72 | + <ul class="link-list" role="directory"> |
| 73 | + |
| 74 | + <li class="calls-super" ><a href="#method-c-new">::new</a> |
| 75 | + |
| 76 | + </ul> |
| 77 | +</div> |
| 78 | + |
| 79 | + </div> |
| 80 | +</nav> |
| 81 | + |
| 82 | +<main role="main" aria-labelledby="class-DropboxApi::Authenticator"> |
| 83 | + <h1 id="class-DropboxApi::Authenticator" class="class"> |
| 84 | + class DropboxApi::Authenticator |
| 85 | + </h1> |
| 86 | + |
| 87 | + <section class="description"> |
| 88 | + |
| 89 | + </section> |
| 90 | + |
| 91 | + |
| 92 | + <section id="5Buntitled-5D" class="documentation-section"> |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + <section id="public-class-5Buntitled-5D-method-details" class="method-section"> |
| 103 | + <header> |
| 104 | + <h3>Public Class Methods</h3> |
| 105 | + </header> |
| 106 | + |
| 107 | + |
| 108 | + <div id="method-c-new" class="method-detail "> |
| 109 | + |
| 110 | + <div class="method-heading"> |
| 111 | + <span class="method-name">new</span><span |
| 112 | + class="method-args">(client_id, client_secret)</span> |
| 113 | + |
| 114 | + <span class="method-click-advice">click to toggle source</span> |
| 115 | + |
| 116 | + </div> |
| 117 | + |
| 118 | + |
| 119 | + <div class="method-description"> |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + <div class="method-calls-super"> |
| 125 | + Calls superclass method |
| 126 | + |
| 127 | + </div> |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + <div class="method-source-code" id="new-source"> |
| 132 | + <pre><span class="ruby-comment"># File lib/dropbox_api/authenticator.rb, line 5</span> |
| 133 | +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">client_id</span>, <span class="ruby-identifier">client_secret</span>) |
| 134 | + <span class="ruby-keyword">super</span>(<span class="ruby-identifier">client_id</span>, <span class="ruby-identifier">client_secret</span>, { |
| 135 | + <span class="ruby-value">authorize_url:</span> <span class="ruby-string">'https://www.dropbox.com/oauth2/authorize'</span>, |
| 136 | + <span class="ruby-value">token_url:</span> <span class="ruby-string">'https://api.dropboxapi.com/oauth2/token'</span> |
| 137 | + }) |
| 138 | +<span class="ruby-keyword">end</span></pre> |
| 139 | + </div> |
| 140 | + |
| 141 | + </div> |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + </div> |
| 147 | + |
| 148 | + |
| 149 | + </section> |
| 150 | + |
| 151 | + </section> |
| 152 | +</main> |
| 153 | + |
| 154 | + |
| 155 | +<footer id="validator-badges" role="contentinfo"> |
| 156 | + <p><a href="https://validator.w3.org/check/referer">Validate</a> |
| 157 | + <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1. |
| 158 | + <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. |
| 159 | +</footer> |
| 160 | + |
0 commit comments