gdata_19 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. data/.hgtags +5 -0
  2. data/LICENSE +202 -0
  3. data/README +97 -0
  4. data/Rakefile +82 -0
  5. data/VERSION +1 -0
  6. data/bin/test_captcha.rb +52 -0
  7. data/doc/classes/GData/Auth/AuthSub.html +349 -0
  8. data/doc/classes/GData/Auth/AuthSub.src/M000020.html +29 -0
  9. data/doc/classes/GData/Auth/AuthSub.src/M000021.html +29 -0
  10. data/doc/classes/GData/Auth/AuthSub.src/M000022.html +31 -0
  11. data/doc/classes/GData/Auth/AuthSub.src/M000023.html +29 -0
  12. data/doc/classes/GData/Auth/AuthSub.src/M000024.html +32 -0
  13. data/doc/classes/GData/Auth/AuthSub.src/M000025.html +26 -0
  14. data/doc/classes/GData/Auth/AuthSub.src/M000026.html +29 -0
  15. data/doc/classes/GData/Auth/AuthSub.src/M000038.html +28 -0
  16. data/doc/classes/GData/Auth/AuthSub.src/M000039.html +29 -0
  17. data/doc/classes/GData/Auth/AuthSub.src/M000040.html +31 -0
  18. data/doc/classes/GData/Auth/AuthSub.src/M000041.html +29 -0
  19. data/doc/classes/GData/Auth/AuthSub.src/M000042.html +32 -0
  20. data/doc/classes/GData/Auth/AuthSub.src/M000043.html +28 -0
  21. data/doc/classes/GData/Auth/AuthSub.src/M000044.html +29 -0
  22. data/doc/classes/GData/Auth/AuthSub.src/M000045.html +31 -0
  23. data/doc/classes/GData/Auth/AuthSub.src/M000046.html +28 -0
  24. data/doc/classes/GData/Auth/AuthSub.src/M000047.html +28 -0
  25. data/doc/classes/GData/Auth/AuthSub.src/M000048.html +29 -0
  26. data/doc/classes/GData/Auth/AuthSub.src/M000049.html +31 -0
  27. data/doc/classes/GData/Auth/AuthSub.src/M000050.html +28 -0
  28. data/doc/classes/GData/Auth/AuthSub.src/M000051.html +31 -0
  29. data/doc/classes/GData/Auth/AuthSub.src/M000052.html +25 -0
  30. data/doc/classes/GData/Auth/AuthSub.src/M000053.html +29 -0
  31. data/doc/classes/GData/Auth/ClientLogin.html +232 -0
  32. data/doc/classes/GData/Auth/ClientLogin.src/M000027.html +27 -0
  33. data/doc/classes/GData/Auth/ClientLogin.src/M000028.html +47 -0
  34. data/doc/classes/GData/Auth/ClientLogin.src/M000029.html +22 -0
  35. data/doc/classes/GData/Auth/ClientLogin.src/M000045.html +29 -0
  36. data/doc/classes/GData/Auth/ClientLogin.src/M000046.html +49 -0
  37. data/doc/classes/GData/Auth/ClientLogin.src/M000047.html +22 -0
  38. data/doc/classes/GData/Auth/ClientLogin.src/M000050.html +29 -0
  39. data/doc/classes/GData/Auth/ClientLogin.src/M000051.html +49 -0
  40. data/doc/classes/GData/Auth/ClientLogin.src/M000052.html +22 -0
  41. data/doc/classes/GData/Auth/ClientLogin.src/M000053.html +29 -0
  42. data/doc/classes/GData/Auth/ClientLogin.src/M000054.html +29 -0
  43. data/doc/classes/GData/Auth/ClientLogin.src/M000055.html +49 -0
  44. data/doc/classes/GData/Auth/ClientLogin.src/M000056.html +22 -0
  45. data/doc/classes/GData/Auth.html +133 -0
  46. data/doc/classes/GData/Client/Apps.html +146 -0
  47. data/doc/classes/GData/Client/Apps.src/M000027.html +19 -0
  48. data/doc/classes/GData/Client/Apps.src/M000028.html +19 -0
  49. data/doc/classes/GData/Client/AuthorizationError.html +113 -0
  50. data/doc/classes/GData/Client/BadRequestError.html +113 -0
  51. data/doc/classes/GData/Client/Base.html +453 -0
  52. data/doc/classes/GData/Client/Base.src/M000002.html +21 -0
  53. data/doc/classes/GData/Client/Base.src/M000003.html +55 -0
  54. data/doc/classes/GData/Client/Base.src/M000004.html +18 -0
  55. data/doc/classes/GData/Client/Base.src/M000005.html +18 -0
  56. data/doc/classes/GData/Client/Base.src/M000006.html +18 -0
  57. data/doc/classes/GData/Client/Base.src/M000007.html +18 -0
  58. data/doc/classes/GData/Client/Base.src/M000008.html +22 -0
  59. data/doc/classes/GData/Client/Base.src/M000009.html +26 -0
  60. data/doc/classes/GData/Client/Base.src/M000010.html +22 -0
  61. data/doc/classes/GData/Client/Base.src/M000011.html +25 -0
  62. data/doc/classes/GData/Client/Base.src/M000012.html +25 -0
  63. data/doc/classes/GData/Client/Base.src/M000013.html +33 -0
  64. data/doc/classes/GData/Client/Base.src/M000014.html +44 -0
  65. data/doc/classes/GData/Client/Base.src/M000015.html +18 -0
  66. data/doc/classes/GData/Client/Base.src/M000016.html +18 -0
  67. data/doc/classes/GData/Client/Base.src/M000017.html +18 -0
  68. data/doc/classes/GData/Client/Base.src/M000018.html +18 -0
  69. data/doc/classes/GData/Client/Base.src/M000019.html +18 -0
  70. data/doc/classes/GData/Client/Base.src/M000020.html +18 -0
  71. data/doc/classes/GData/Client/Base.src/M000021.html +25 -0
  72. data/doc/classes/GData/Client/Base.src/M000022.html +28 -0
  73. data/doc/classes/GData/Client/Base.src/M000023.html +22 -0
  74. data/doc/classes/GData/Client/Base.src/M000024.html +18 -0
  75. data/doc/classes/GData/Client/Base.src/M000025.html +22 -0
  76. data/doc/classes/GData/Client/Blogger.html +146 -0
  77. data/doc/classes/GData/Client/Blogger.src/M000002.html +20 -0
  78. data/doc/classes/GData/Client/BookSearch.html +146 -0
  79. data/doc/classes/GData/Client/BookSearch.src/M000010.html +20 -0
  80. data/doc/classes/GData/Client/BookSearch.src/M000011.html +20 -0
  81. data/doc/classes/GData/Client/Calendar.html +221 -0
  82. data/doc/classes/GData/Client/Calendar.src/M000030.html +20 -0
  83. data/doc/classes/GData/Client/Calendar.src/M000031.html +20 -0
  84. data/doc/classes/GData/Client/Calendar.src/M000032.html +19 -0
  85. data/doc/classes/GData/Client/Calendar.src/M000033.html +25 -0
  86. data/doc/classes/GData/Client/Calendar.src/M000034.html +21 -0
  87. data/doc/classes/GData/Client/CaptchaError.html +167 -0
  88. data/doc/classes/GData/Client/CaptchaError.src/M000001.html +19 -0
  89. data/doc/classes/GData/Client/CaptchaError.src/M000005.html +19 -0
  90. data/doc/classes/GData/Client/Contacts.html +146 -0
  91. data/doc/classes/GData/Client/Contacts.src/M000003.html +20 -0
  92. data/doc/classes/GData/Client/DocList.html +146 -0
  93. data/doc/classes/GData/Client/DocList.src/M000006.html +20 -0
  94. data/doc/classes/GData/Client/DocList.src/M000007.html +20 -0
  95. data/doc/classes/GData/Client/Error.html +118 -0
  96. data/doc/classes/GData/Client/Finance.html +146 -0
  97. data/doc/classes/GData/Client/Finance.src/M000029.html +20 -0
  98. data/doc/classes/GData/Client/Finance.src/M000030.html +20 -0
  99. data/doc/classes/GData/Client/GBase.html +146 -0
  100. data/doc/classes/GData/Client/GBase.src/M000004.html +20 -0
  101. data/doc/classes/GData/Client/GMail.html +146 -0
  102. data/doc/classes/GData/Client/GMail.src/M000028.html +20 -0
  103. data/doc/classes/GData/Client/GMail.src/M000029.html +20 -0
  104. data/doc/classes/GData/Client/Health.html +146 -0
  105. data/doc/classes/GData/Client/Health.src/M000031.html +20 -0
  106. data/doc/classes/GData/Client/Health.src/M000034.html +20 -0
  107. data/doc/classes/GData/Client/Health.src/M000035.html +20 -0
  108. data/doc/classes/GData/Client/Notebook.html +146 -0
  109. data/doc/classes/GData/Client/Notebook.src/M000009.html +20 -0
  110. data/doc/classes/GData/Client/Notebook.src/M000010.html +20 -0
  111. data/doc/classes/GData/Client/Photos.html +146 -0
  112. data/doc/classes/GData/Client/Photos.src/M000008.html +21 -0
  113. data/doc/classes/GData/Client/Photos.src/M000009.html +21 -0
  114. data/doc/classes/GData/Client/RequestError.html +167 -0
  115. data/doc/classes/GData/Client/RequestError.src/M000006.html +20 -0
  116. data/doc/classes/GData/Client/ServerError.html +113 -0
  117. data/doc/classes/GData/Client/Spreadsheets.html +146 -0
  118. data/doc/classes/GData/Client/Spreadsheets.src/M000001.html +20 -0
  119. data/doc/classes/GData/Client/UnknownError.html +113 -0
  120. data/doc/classes/GData/Client/VersionConflictError.html +113 -0
  121. data/doc/classes/GData/Client/WebmasterTools.html +146 -0
  122. data/doc/classes/GData/Client/WebmasterTools.src/M000007.html +20 -0
  123. data/doc/classes/GData/Client/WebmasterTools.src/M000008.html +20 -0
  124. data/doc/classes/GData/Client/YouTube.html +192 -0
  125. data/doc/classes/GData/Client/YouTube.src/M000013.html +19 -0
  126. data/doc/classes/GData/Client/YouTube.src/M000014.html +24 -0
  127. data/doc/classes/GData/Client/YouTube.src/M000025.html +22 -0
  128. data/doc/classes/GData/Client/YouTube.src/M000026.html +22 -0
  129. data/doc/classes/GData/Client/YouTube.src/M000027.html +24 -0
  130. data/doc/classes/GData/Client.html +198 -0
  131. data/doc/classes/GData/HTTP/DefaultService.html +150 -0
  132. data/doc/classes/GData/HTTP/DefaultService.src/M000019.html +48 -0
  133. data/doc/classes/GData/HTTP/DefaultService.src/M000037.html +63 -0
  134. data/doc/classes/GData/HTTP/DefaultService.src/M000042.html +66 -0
  135. data/doc/classes/GData/HTTP/DefaultService.src/M000045.html +66 -0
  136. data/doc/classes/GData/HTTP/DefaultService.src/M000046.html +66 -0
  137. data/doc/classes/GData/HTTP/MimeBody.html +202 -0
  138. data/doc/classes/GData/HTTP/MimeBody.src/M000032.html +22 -0
  139. data/doc/classes/GData/HTTP/MimeBody.src/M000033.html +31 -0
  140. data/doc/classes/GData/HTTP/MimeBody.src/M000034.html +18 -0
  141. data/doc/classes/GData/HTTP/MimeBody.src/M000035.html +22 -0
  142. data/doc/classes/GData/HTTP/MimeBody.src/M000036.html +22 -0
  143. data/doc/classes/GData/HTTP/MimeBody.src/M000037.html +31 -0
  144. data/doc/classes/GData/HTTP/MimeBody.src/M000038.html +18 -0
  145. data/doc/classes/GData/HTTP/MimeBodyString.html +164 -0
  146. data/doc/classes/GData/HTTP/MimeBodyString.src/M000036.html +19 -0
  147. data/doc/classes/GData/HTTP/MimeBodyString.src/M000037.html +27 -0
  148. data/doc/classes/GData/HTTP/MimeBodyString.src/M000039.html +19 -0
  149. data/doc/classes/GData/HTTP/MimeBodyString.src/M000040.html +19 -0
  150. data/doc/classes/GData/HTTP/MimeBodyString.src/M000041.html +27 -0
  151. data/doc/classes/GData/HTTP/Request.html +243 -0
  152. data/doc/classes/GData/HTTP/Request.src/M000015.html +22 -0
  153. data/doc/classes/GData/HTTP/Request.src/M000016.html +22 -0
  154. data/doc/classes/GData/HTTP/Request.src/M000017.html +22 -0
  155. data/doc/classes/GData/HTTP/Request.src/M000018.html +24 -0
  156. data/doc/classes/GData/HTTP/Request.src/M000033.html +24 -0
  157. data/doc/classes/GData/HTTP/Request.src/M000034.html +22 -0
  158. data/doc/classes/GData/HTTP/Request.src/M000035.html +22 -0
  159. data/doc/classes/GData/HTTP/Request.src/M000036.html +25 -0
  160. data/doc/classes/GData/HTTP/Request.src/M000038.html +24 -0
  161. data/doc/classes/GData/HTTP/Request.src/M000039.html +22 -0
  162. data/doc/classes/GData/HTTP/Request.src/M000040.html +22 -0
  163. data/doc/classes/GData/HTTP/Request.src/M000041.html +24 -0
  164. data/doc/classes/GData/HTTP/Request.src/M000042.html +24 -0
  165. data/doc/classes/GData/HTTP/Request.src/M000043.html +22 -0
  166. data/doc/classes/GData/HTTP/Request.src/M000044.html +22 -0
  167. data/doc/classes/GData/HTTP/Request.src/M000045.html +25 -0
  168. data/doc/classes/GData/HTTP/Response.html +179 -0
  169. data/doc/classes/GData/HTTP/Response.src/M000032.html +26 -0
  170. data/doc/classes/GData/HTTP/Response.src/M000035.html +26 -0
  171. data/doc/classes/GData/HTTP/Response.src/M000038.html +26 -0
  172. data/doc/classes/GData/HTTP/Response.src/M000039.html +26 -0
  173. data/doc/classes/GData/HTTP.html +127 -0
  174. data/doc/classes/GData.html +226 -0
  175. data/doc/created.rid +1 -0
  176. data/doc/files/README.html +214 -0
  177. data/doc/files/lib/gdata/auth/authsub_rb.html +131 -0
  178. data/doc/files/lib/gdata/auth/clientlogin_rb.html +129 -0
  179. data/doc/files/lib/gdata/auth_rb.html +130 -0
  180. data/doc/files/lib/gdata/client/apps_rb.html +122 -0
  181. data/doc/files/lib/gdata/client/base_rb.html +122 -0
  182. data/doc/files/lib/gdata/client/blogger_rb.html +122 -0
  183. data/doc/files/lib/gdata/client/booksearch_rb.html +122 -0
  184. data/doc/files/lib/gdata/client/calendar_rb.html +122 -0
  185. data/doc/files/lib/gdata/client/contacts_rb.html +122 -0
  186. data/doc/files/lib/gdata/client/doclist_rb.html +122 -0
  187. data/doc/files/lib/gdata/client/finance_rb.html +122 -0
  188. data/doc/files/lib/gdata/client/gbase_rb.html +122 -0
  189. data/doc/files/lib/gdata/client/gdata_rb.html +129 -0
  190. data/doc/files/lib/gdata/client/gmail_rb.html +122 -0
  191. data/doc/files/lib/gdata/client/health_rb.html +122 -0
  192. data/doc/files/lib/gdata/client/notebook_rb.html +122 -0
  193. data/doc/files/lib/gdata/client/photos_rb.html +122 -0
  194. data/doc/files/lib/gdata/client/spreadsheets_rb.html +122 -0
  195. data/doc/files/lib/gdata/client/webmaster_tools_rb.html +122 -0
  196. data/doc/files/lib/gdata/client/youtube_rb.html +122 -0
  197. data/doc/files/lib/gdata/client_rb.html +144 -0
  198. data/doc/files/lib/gdata/http/default_service_rb.html +131 -0
  199. data/doc/files/lib/gdata/http/mime_body_rb.html +122 -0
  200. data/doc/files/lib/gdata/http/request_rb.html +129 -0
  201. data/doc/files/lib/gdata/http/response_rb.html +129 -0
  202. data/doc/files/lib/gdata/http_rb.html +132 -0
  203. data/doc/files/lib/gdata_rb.html +132 -0
  204. data/doc/fr_class_index.html +61 -0
  205. data/doc/fr_file_index.html +53 -0
  206. data/doc/fr_method_index.html +82 -0
  207. data/doc/index.html +24 -0
  208. data/doc/rdoc-style.css +208 -0
  209. data/gdata19.gemspec +294 -0
  210. data/lib/gdata/auth/authsub.rb +162 -0
  211. data/lib/gdata/auth/clientlogin.rb +103 -0
  212. data/lib/gdata/auth.rb +23 -0
  213. data/lib/gdata/client/apps.rb +28 -0
  214. data/lib/gdata/client/base.rb +183 -0
  215. data/lib/gdata/client/blogger.rb +29 -0
  216. data/lib/gdata/client/booksearch.rb +29 -0
  217. data/lib/gdata/client/calendar.rb +59 -0
  218. data/lib/gdata/client/contacts.rb +29 -0
  219. data/lib/gdata/client/doclist.rb +29 -0
  220. data/lib/gdata/client/finance.rb +29 -0
  221. data/lib/gdata/client/gbase.rb +29 -0
  222. data/lib/gdata/client/gmail.rb +29 -0
  223. data/lib/gdata/client/health.rb +29 -0
  224. data/lib/gdata/client/notebook.rb +29 -0
  225. data/lib/gdata/client/photos.rb +30 -0
  226. data/lib/gdata/client/spreadsheets.rb +29 -0
  227. data/lib/gdata/client/webmaster_tools.rb +29 -0
  228. data/lib/gdata/client/youtube.rb +48 -0
  229. data/lib/gdata/client.rb +85 -0
  230. data/lib/gdata/http/default_service.rb +83 -0
  231. data/lib/gdata/http/mime_body.rb +101 -0
  232. data/lib/gdata/http/request.rb +75 -0
  233. data/lib/gdata/http/response.rb +45 -0
  234. data/lib/gdata/http.rb +19 -0
  235. data/lib/gdata.rb +24 -0
  236. data/pkg/gdata19-1.1.2.gem +0 -0
  237. data/test/tc_gdata_auth_authsub.rb +53 -0
  238. data/test/tc_gdata_auth_clientlogin.rb +59 -0
  239. data/test/tc_gdata_client_base.rb +37 -0
  240. data/test/tc_gdata_client_calendar.rb +40 -0
  241. data/test/tc_gdata_client_photos.rb +65 -0
  242. data/test/tc_gdata_client_youtube.rb +77 -0
  243. data/test/tc_gdata_http_mime_body.rb +47 -0
  244. data/test/tc_gdata_http_request.rb +36 -0
  245. data/test/test_config.yml.example +7 -0
  246. data/test/test_helper.rb +47 -0
  247. data/test/testimage.jpg +0 -0
  248. data/test/ts_gdata.rb +48 -0
  249. data/test/ts_gdata_auth.rb +25 -0
  250. data/test/ts_gdata_client.rb +29 -0
  251. data/test/ts_gdata_http.rb +25 -0
  252. metadata +320 -0
@@ -0,0 +1,453 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: GData::Client::Base</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">GData::Client::Base</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/gdata/client/base_rb.html">
59
+ lib/gdata/client/base.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ A client object used to interact with different Google Data APIs.
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000025">authsub_private_key=</a>&nbsp;&nbsp;
96
+ <a href="#M000024">authsub_token=</a>&nbsp;&nbsp;
97
+ <a href="#M000023">authsub_url</a>&nbsp;&nbsp;
98
+ <a href="#M000022">clientlogin</a>&nbsp;&nbsp;
99
+ <a href="#M000020">delete</a>&nbsp;&nbsp;
100
+ <a href="#M000015">get</a>&nbsp;&nbsp;
101
+ <a href="#M000013">make_file_request</a>&nbsp;&nbsp;
102
+ <a href="#M000014">make_request</a>&nbsp;&nbsp;
103
+ <a href="#M000012">new</a>&nbsp;&nbsp;
104
+ <a href="#M000018">post</a>&nbsp;&nbsp;
105
+ <a href="#M000019">post_file</a>&nbsp;&nbsp;
106
+ <a href="#M000021">prepare_headers</a>&nbsp;&nbsp;
107
+ <a href="#M000016">put</a>&nbsp;&nbsp;
108
+ <a href="#M000017">put_file</a>&nbsp;&nbsp;
109
+ </div>
110
+ </div>
111
+
112
+ </div>
113
+
114
+
115
+ <!-- if includes -->
116
+
117
+ <div id="section">
118
+
119
+
120
+
121
+
122
+
123
+ <div id="attribute-list">
124
+ <h3 class="section-bar">Attributes</h3>
125
+
126
+ <div class="name-list">
127
+ <table>
128
+ <tr class="top-aligned-row context-row">
129
+ <td class="context-item-name">auth_handler</td>
130
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
131
+ <td class="context-item-desc">
132
+ A subclass of <a href="../Auth.html">GData::Auth</a> that handles
133
+ authentication signing.
134
+
135
+ </td>
136
+ </tr>
137
+ <tr class="top-aligned-row context-row">
138
+ <td class="context-item-name">authsub_scope</td>
139
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
140
+ <td class="context-item-desc">
141
+ The broadest AuthSub scope for working with an API. This is overriden by
142
+ the service-specific subclasses.
143
+
144
+ </td>
145
+ </tr>
146
+ <tr class="top-aligned-row context-row">
147
+ <td class="context-item-name">clientlogin_service</td>
148
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
149
+ <td class="context-item-desc">
150
+ A default service name for ClientLogin (overriden by subclasses).
151
+
152
+ </td>
153
+ </tr>
154
+ <tr class="top-aligned-row context-row">
155
+ <td class="context-item-name">clientlogin_url</td>
156
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
157
+ <td class="context-item-desc">
158
+ The default URL for ClientLogin.
159
+
160
+ </td>
161
+ </tr>
162
+ <tr class="top-aligned-row context-row">
163
+ <td class="context-item-name">headers</td>
164
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
165
+ <td class="context-item-desc">
166
+ Headers to include in every request.
167
+
168
+ </td>
169
+ </tr>
170
+ <tr class="top-aligned-row context-row">
171
+ <td class="context-item-name">http_service</td>
172
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
173
+ <td class="context-item-desc">
174
+ A subclass of <a href="../HTTP.html">GData::HTTP</a> that handles making <a
175
+ href="../HTTP.html">HTTP</a> requests.
176
+
177
+ </td>
178
+ </tr>
179
+ <tr class="top-aligned-row context-row">
180
+ <td class="context-item-name">source</td>
181
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
182
+ <td class="context-item-desc">
183
+ A short string identifying the current application.
184
+
185
+ </td>
186
+ </tr>
187
+ <tr class="top-aligned-row context-row">
188
+ <td class="context-item-name">version</td>
189
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
190
+ <td class="context-item-desc">
191
+ The API version being used.
192
+
193
+ </td>
194
+ </tr>
195
+ </table>
196
+ </div>
197
+ </div>
198
+
199
+
200
+
201
+ <!-- if method_list -->
202
+ <div id="methods">
203
+ <h3 class="section-bar">Public Class methods</h3>
204
+
205
+ <div id="method-M000012" class="method-detail">
206
+ <a name="M000012"></a>
207
+
208
+ <div class="method-heading">
209
+ <a href="Base.src/M000012.html" target="Code" class="method-signature"
210
+ onclick="popupCode('Base.src/M000012.html');return false;">
211
+ <span class="method-name">new</span><span class="method-args">(options = {})</span>
212
+ </a>
213
+ </div>
214
+
215
+ <div class="method-description">
216
+ </div>
217
+ </div>
218
+
219
+ <h3 class="section-bar">Public Instance methods</h3>
220
+
221
+ <div id="method-M000025" class="method-detail">
222
+ <a name="M000025"></a>
223
+
224
+ <div class="method-heading">
225
+ <a href="Base.src/M000025.html" target="Code" class="method-signature"
226
+ onclick="popupCode('Base.src/M000025.html');return false;">
227
+ <span class="method-name">authsub_private_key=</span><span class="method-args">(key)</span>
228
+ </a>
229
+ </div>
230
+
231
+ <div class="method-description">
232
+ <p>
233
+ Sets a private key to use with AuthSub requests.
234
+ </p>
235
+ </div>
236
+ </div>
237
+
238
+ <div id="method-M000024" class="method-detail">
239
+ <a name="M000024"></a>
240
+
241
+ <div class="method-heading">
242
+ <a href="Base.src/M000024.html" target="Code" class="method-signature"
243
+ onclick="popupCode('Base.src/M000024.html');return false;">
244
+ <span class="method-name">authsub_token=</span><span class="method-args">(token)</span>
245
+ </a>
246
+ </div>
247
+
248
+ <div class="method-description">
249
+ <p>
250
+ Sets an AuthSub token for the service.
251
+ </p>
252
+ </div>
253
+ </div>
254
+
255
+ <div id="method-M000023" class="method-detail">
256
+ <a name="M000023"></a>
257
+
258
+ <div class="method-heading">
259
+ <a href="Base.src/M000023.html" target="Code" class="method-signature"
260
+ onclick="popupCode('Base.src/M000023.html');return false;">
261
+ <span class="method-name">authsub_url</span><span class="method-args">(next_url, secure = false, session = true, domain = nil, scope = nil)</span>
262
+ </a>
263
+ </div>
264
+
265
+ <div class="method-description">
266
+ </div>
267
+ </div>
268
+
269
+ <div id="method-M000022" class="method-detail">
270
+ <a name="M000022"></a>
271
+
272
+ <div class="method-heading">
273
+ <a href="Base.src/M000022.html" target="Code" class="method-signature"
274
+ onclick="popupCode('Base.src/M000022.html');return false;">
275
+ <span class="method-name">clientlogin</span><span class="method-args">(username, password, captcha_token = nil, captcha_answer = nil, service = nil, account_type = nil)</span>
276
+ </a>
277
+ </div>
278
+
279
+ <div class="method-description">
280
+ <p>
281
+ Performs ClientLogin for the service. See <a
282
+ href="../Auth/ClientLogin.html">GData::Auth::ClientLogin</a> for details.
283
+ </p>
284
+ </div>
285
+ </div>
286
+
287
+ <div id="method-M000020" class="method-detail">
288
+ <a name="M000020"></a>
289
+
290
+ <div class="method-heading">
291
+ <a href="Base.src/M000020.html" target="Code" class="method-signature"
292
+ onclick="popupCode('Base.src/M000020.html');return false;">
293
+ <span class="method-name">delete</span><span class="method-args">(url)</span>
294
+ </a>
295
+ </div>
296
+
297
+ <div class="method-description">
298
+ <p>
299
+ Performs an <a href="../HTTP.html">HTTP</a> DELETE against the API.
300
+ </p>
301
+ </div>
302
+ </div>
303
+
304
+ <div id="method-M000015" class="method-detail">
305
+ <a name="M000015"></a>
306
+
307
+ <div class="method-heading">
308
+ <a href="Base.src/M000015.html" target="Code" class="method-signature"
309
+ onclick="popupCode('Base.src/M000015.html');return false;">
310
+ <span class="method-name">get</span><span class="method-args">(url)</span>
311
+ </a>
312
+ </div>
313
+
314
+ <div class="method-description">
315
+ <p>
316
+ Performs an <a href="../HTTP.html">HTTP</a> GET against the API.
317
+ </p>
318
+ </div>
319
+ </div>
320
+
321
+ <div id="method-M000013" class="method-detail">
322
+ <a name="M000013"></a>
323
+
324
+ <div class="method-heading">
325
+ <a href="Base.src/M000013.html" target="Code" class="method-signature"
326
+ onclick="popupCode('Base.src/M000013.html');return false;">
327
+ <span class="method-name">make_file_request</span><span class="method-args">(method, url, file_path, mime_type, entry = nil)</span>
328
+ </a>
329
+ </div>
330
+
331
+ <div class="method-description">
332
+ <p>
333
+ Sends an <a href="../HTTP.html">HTTP</a> request with the given file as a
334
+ stream
335
+ </p>
336
+ </div>
337
+ </div>
338
+
339
+ <div id="method-M000014" class="method-detail">
340
+ <a name="M000014"></a>
341
+
342
+ <div class="method-heading">
343
+ <a href="Base.src/M000014.html" target="Code" class="method-signature"
344
+ onclick="popupCode('Base.src/M000014.html');return false;">
345
+ <span class="method-name">make_request</span><span class="method-args">(method, url, body = '')</span>
346
+ </a>
347
+ </div>
348
+
349
+ <div class="method-description">
350
+ <p>
351
+ Sends an <a href="../HTTP.html">HTTP</a> request and return the response.
352
+ </p>
353
+ </div>
354
+ </div>
355
+
356
+ <div id="method-M000018" class="method-detail">
357
+ <a name="M000018"></a>
358
+
359
+ <div class="method-heading">
360
+ <a href="Base.src/M000018.html" target="Code" class="method-signature"
361
+ onclick="popupCode('Base.src/M000018.html');return false;">
362
+ <span class="method-name">post</span><span class="method-args">(url, body)</span>
363
+ </a>
364
+ </div>
365
+
366
+ <div class="method-description">
367
+ <p>
368
+ Performs an <a href="../HTTP.html">HTTP</a> POST against the API.
369
+ </p>
370
+ </div>
371
+ </div>
372
+
373
+ <div id="method-M000019" class="method-detail">
374
+ <a name="M000019"></a>
375
+
376
+ <div class="method-heading">
377
+ <a href="Base.src/M000019.html" target="Code" class="method-signature"
378
+ onclick="popupCode('Base.src/M000019.html');return false;">
379
+ <span class="method-name">post_file</span><span class="method-args">(url, file_path, mime_type, entry = nil)</span>
380
+ </a>
381
+ </div>
382
+
383
+ <div class="method-description">
384
+ <p>
385
+ Performs an <a href="../HTTP.html">HTTP</a> POST with the given file
386
+ </p>
387
+ </div>
388
+ </div>
389
+
390
+ <div id="method-M000021" class="method-detail">
391
+ <a name="M000021"></a>
392
+
393
+ <div class="method-heading">
394
+ <a href="Base.src/M000021.html" target="Code" class="method-signature"
395
+ onclick="popupCode('Base.src/M000021.html');return false;">
396
+ <span class="method-name">prepare_headers</span><span class="method-args">()</span>
397
+ </a>
398
+ </div>
399
+
400
+ <div class="method-description">
401
+ <p>
402
+ Constructs some necessary headers for every request.
403
+ </p>
404
+ </div>
405
+ </div>
406
+
407
+ <div id="method-M000016" class="method-detail">
408
+ <a name="M000016"></a>
409
+
410
+ <div class="method-heading">
411
+ <a href="Base.src/M000016.html" target="Code" class="method-signature"
412
+ onclick="popupCode('Base.src/M000016.html');return false;">
413
+ <span class="method-name">put</span><span class="method-args">(url, body)</span>
414
+ </a>
415
+ </div>
416
+
417
+ <div class="method-description">
418
+ <p>
419
+ Performs an <a href="../HTTP.html">HTTP</a> PUT against the API.
420
+ </p>
421
+ </div>
422
+ </div>
423
+
424
+ <div id="method-M000017" class="method-detail">
425
+ <a name="M000017"></a>
426
+
427
+ <div class="method-heading">
428
+ <a href="Base.src/M000017.html" target="Code" class="method-signature"
429
+ onclick="popupCode('Base.src/M000017.html');return false;">
430
+ <span class="method-name">put_file</span><span class="method-args">(url, file_path, mime_type, entry = nil)</span>
431
+ </a>
432
+ </div>
433
+
434
+ <div class="method-description">
435
+ <p>
436
+ Performs an <a href="../HTTP.html">HTTP</a> PUT with the given file
437
+ </p>
438
+ </div>
439
+ </div>
440
+
441
+
442
+ </div>
443
+
444
+
445
+ </div>
446
+
447
+
448
+ <div id="validator-badges">
449
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
450
+ </div>
451
+
452
+ </body>
453
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 51</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {})
15
+ <span class="ruby-identifier">options</span> = <span class="ruby-constant">DEFAULT_OPTIONS</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
16
+ <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{key}=&quot;</span>, <span class="ruby-identifier">value</span>)
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>make_request (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 59</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">body</span> = <span class="ruby-value str">''</span>)
15
+ <span class="ruby-identifier">headers</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">prepare_headers</span>
16
+ <span class="ruby-identifier">request</span> = <span class="ruby-constant">GData</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>,
17
+ <span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">method</span>, <span class="ruby-identifier">:body</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">body</span>)
18
+
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@auth_handler</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@auth_handler</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:sign_request!</span>)
20
+ <span class="ruby-ivar">@auth_handler</span>.<span class="ruby-identifier">sign_request!</span>(<span class="ruby-identifier">request</span>)
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-identifier">service</span> = <span class="ruby-identifier">http_service</span>.<span class="ruby-identifier">new</span>
24
+ <span class="ruby-identifier">response</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">request</span>)
25
+
26
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">status_code</span>
27
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">200</span>, <span class="ruby-value">201</span>
28
+ <span class="ruby-comment cmt">#Do nothing, it's a success.</span>
29
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">401</span>, <span class="ruby-value">403</span>
30
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">AuthorizationError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
31
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">400</span>
32
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">BadRequestError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
33
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">409</span>
34
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">VersionConflictError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
35
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">500</span>
36
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ServerError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
37
+ <span class="ruby-keyword kw">else</span>
38
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnknownError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">status_code</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
39
+ <span class="ruby-keyword kw">end</span>
40
+
41
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
42
+ <span class="ruby-keyword kw">begin</span>
43
+ <span class="ruby-identifier">document</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>).<span class="ruby-identifier">root</span>
44
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">document</span>.<span class="ruby-identifier">nil?</span>
45
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
46
+ <span class="ruby-keyword kw">else</span>
47
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">document</span>
48
+ <span class="ruby-keyword kw">end</span>
49
+ <span class="ruby-keyword kw">rescue</span>
50
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
51
+ <span class="ruby-keyword kw">end</span>
52
+ <span class="ruby-keyword kw">end</span>
53
+ <span class="ruby-keyword kw">end</span></pre>
54
+ </body>
55
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>get (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 101</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">:get</span>, <span class="ruby-identifier">url</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>put (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 106</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">body</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">:put</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">body</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>post (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 111</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">body</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">:post</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">body</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>delete (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 116</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">url</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-identifier">:delete</span>, <span class="ruby-identifier">url</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>prepare_headers (GData::Client::Base)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/gdata/client/gdata.rb, line 121</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepare_headers</span>
15
+ <span class="ruby-identifier">headers</span> = <span class="ruby-ivar">@headers</span>
16
+ <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'GData-Version'</span>] = <span class="ruby-ivar">@version</span>
17
+ <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'User-Agent'</span>] = <span class="ruby-constant">GData</span><span class="ruby-operator">::</span><span class="ruby-constant">Auth</span><span class="ruby-operator">::</span><span class="ruby-constant">SOURCE_LIB_STRING</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@source</span>
18
+ <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'Content-Type'</span>] = <span class="ruby-value str">'application/atom+xml'</span>
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">headers</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>