Changeset 11513
- Timestamp:
- 05/13/08 17:50:50 (5 years ago)
- Location:
- lang/actionscript/as3oauth
- Files:
-
- 8 modified
-
doc/all-index-O.html (modified) (2 diffs)
-
doc/class-summary.html (modified) (2 diffs)
-
doc/org/coderepos/oauth/OAuthConsumer.html (modified) (1 diff)
-
doc/org/coderepos/oauth/OAuthRequestOption.html (modified) (1 diff)
-
doc/org/coderepos/oauth/package-detail.html (modified) (2 diffs)
-
lib-config.xml (modified) (1 diff)
-
src/org/coderepos/oauth/OAuthConsumer.as (modified) (1 diff)
-
src/org/coderepos/oauth/OAuthRequestOption.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/as3oauth/doc/all-index-O.html
r11511 r11513 39 39 </tr> 40 40 <tr> 41 <td width="20"></td><td></td> 41 <td width="20"></td><td> 42 OAuth consumer agent class 43 </td> 42 44 </tr> 43 45 <tr> … … 106 108 </tr> 107 109 <tr> 108 <td width="20"></td><td></td> 110 <td width="20"></td><td> 111 Class represents request-options 112 </td> 109 113 </tr> 110 114 <tr> -
lang/actionscript/as3oauth/doc/class-summary.html
r11511 r11513 52 52 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="org/coderepos/oauth/OAuthConsumer.html">OAuthConsumer</a> 53 53 <br> 54 </td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/coderepos/oauth/class-list.html');" href="org/coderepos/oauth/package-detail.html">org.coderepos.oauth</a></td><td class="summaryTableLastCol"> </td> 54 </td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/coderepos/oauth/class-list.html');" href="org/coderepos/oauth/package-detail.html">org.coderepos.oauth</a></td><td class="summaryTableLastCol"> 55 OAuth consumer agent class 56 </td> 55 57 </tr> 56 58 <tr class="prow0"> … … 82 84 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="org/coderepos/oauth/OAuthRequestOption.html">OAuthRequestOption</a> 83 85 <br> 84 </td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/coderepos/oauth/class-list.html');" href="org/coderepos/oauth/package-detail.html">org.coderepos.oauth</a></td><td class="summaryTableLastCol"> </td> 86 </td><td class="summaryTableCol"><a onclick="javascript:loadClassListFrame('org/coderepos/oauth/class-list.html');" href="org/coderepos/oauth/package-detail.html">org.coderepos.oauth</a></td><td class="summaryTableLastCol"> 87 Class represents request-options 88 </td> 85 89 </tr> 86 90 <tr class="prow1"> -
lang/actionscript/as3oauth/doc/org/coderepos/oauth/OAuthConsumer.html
r11511 r11513 43 43 </table> 44 44 <p></p> 45 <p></p> 45 OAuth consumer agent class 46 <p></p> 47 <br> 48 <span class="label">Example</span> 49 <br> <div class='listing'><pre> 50 var consumer:OAuthConsumer = new OAuthConsumer('consumerKey', 'consumerSecret'); 51 consumer.addEventListener(OAuthEvent.GET_REQUEST_TOKEN_COMPLETED, onCompletedToGetRequestToken); 52 consumer.addEventListener(OAuthEvent.GET_REQUEST_TOKEN_FAILED, onFailedToGetRequestToken); 53 consumer.getRequestToken(new URI("http://exmaple.org/request_token")); 54 private function onCompletedToGetRequestToken(e:OAuthEvent):void { 55 var requestToken:OAuthToken = e.result.token; 56 myApp.saveRequestToken(requestToken); 57 var authorizeURI:URI = new URI("http://example.org/authorize"); 58 authorizeURI.setQueryValue("token", requestToken.token); 59 navigateToURL(authorizeURL); 60 } 61 private function onFailedToGetRequestToken(e:OAuthEvent):void { 62 showError("[" + String(e.result.code) + "] " + e.result.message); 63 } 64 consumer.addEventListener(OAuthEvent.GET_ACCESS_TOKEN_COMPLETED, onCompletedToGetAccessToken); 65 consumer.addEventListener(OAuthEvent.GET_ACCESS_TOKEN_FAILED, onFailedToGetAccessToken); 66 var requestToken:OAuthToken = myApp.loadRequestToken(); 67 consumer.getAccessToken(new URI("http://example.org/access_token"), requestToken); 68 private function onCompletedToGetAccessToken(e:OAuthEvent):void { 69 var accessToken:OAuthToken = e.result.token; 70 myApp.saveAccessToken(accessToken); 71 } 72 private function onFailedToGetAccessToken(e:OAuthEvent):void { 73 showError("[" + String(e.result.code) + "] " + e.result.message); 74 } 75 consumer.addEventListener(OAuthEvent.REQUEST_COMPLETED, onCompletedToRequest); 76 consumer.addEventListener(OAuthEvent.REQUEST_FAILED, onFailedToRequest); 77 consumer.request(new URI("http://example.org/resource")); 78 private function onCompletedToRequest(e:OAuthEvent):void { 79 var content:ByteArray = e.result.content; 80 } 81 private function onFailedToRequest(e:OAuthEvent):void { 82 showError("[" + String(e.result.code) + "] " + e.result.message); 83 } 84 </pre></div> 85 <p></p> 46 86 <br> 47 87 <hr> -
lang/actionscript/as3oauth/doc/org/coderepos/oauth/OAuthRequestOption.html
r11511 r11513 40 40 </table> 41 41 <p></p> 42 <p></p> 42 Class represents request-options 43 <p></p> 43 44 <br> 44 45 <hr> -
lang/actionscript/as3oauth/doc/org/coderepos/oauth/package-detail.html
r11511 r11513 40 40 </tr> 41 41 <tr class="prow1"> 42 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="OAuthConsumer.html">OAuthConsumer</a></td><td class="summaryTableLastCol"> </td> 42 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="OAuthConsumer.html">OAuthConsumer</a></td><td class="summaryTableLastCol"> 43 OAuth consumer agent class 44 </td> 43 45 </tr> 44 46 <tr class="prow0"> … … 52 54 </tr> 53 55 <tr class="prow0"> 54 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="OAuthRequestOption.html">OAuthRequestOption</a></td><td class="summaryTableLastCol"> </td> 56 <td class="summaryTablePaddingCol"> </td><td class="summaryTableSecondCol"><a href="OAuthRequestOption.html">OAuthRequestOption</a></td><td class="summaryTableLastCol"> 57 Class represents request-options 58 </td> 55 59 </tr> 56 60 <tr class="prow1"> -
lang/actionscript/as3oauth/lib-config.xml
r11462 r11513 14 14 </flex-config> 15 15 <!-- compc +configname=air -load-config+=lib-config.xml --> 16 <!-- asdoc +configname=air -doc-sources ./src -output doc -compiler.external-library-path lib --> -
lang/actionscript/as3oauth/src/org/coderepos/oauth/OAuthConsumer.as
r11511 r11513 22 22 import com.adobe.net.URI; 23 23 import com.adobe.utils.StringUtil; 24 /* 24 /** 25 25 * OAuth consumer agent class 26 26 * -
lang/actionscript/as3oauth/src/org/coderepos/oauth/OAuthRequestOption.as
r11511 r11513 15 15 import flash.utils.ByteArray; 16 16 17 /** 18 * Class represents request-options 19 */ 17 20 public class OAuthRequestOption { 18 21
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)