Permalink
Browse files

added removeParamsFromUrl for DELETE workaround

  • Loading branch information...
1 parent 875bfa2 commit 3f31fded48c145730b7f832cb9aa13dbf71eb914 @srohde committed Dec 8, 2009
View
@@ -4,6 +4,7 @@
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path=""/>
+ <libraryPathEntry kind="3" linkType="1" path="/oauth_core/bin/oauth_core.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
</libraryPath>
<sourceAttachmentPath/>
View
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<flexLibProperties version="1">
+<flexLibProperties includeAllClasses="false" version="1">
<includeClasses>
<classEntry path="org.flaircode.oauth.IOAuth"/>
<classEntry path="org.flaircode.oauth.OAuth"/>
View
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fxpProperties abbreviated="false" authoringTool="Flex Builder" parentProject="f54eb25b-e3b0-470f-b9e8-8d845de30fe4" projectUUID="cd2f620e-af74-4d06-b26e-3251bc79255a" sdkVersion="4.0.0" uuid="61d68f0e-e06f-46ac-a10f-24c6092dcde2" version="2">
+ <projects/>
+ <src/>
+ <swc>
+ <linked location="sdkPlaceHolder" path="sdkPlaceHolder" position="0" uuid="61d68f0e-e06f-46ac-a10f-24c6092dcde2"/>
+ <linked location="/libs" path="\libs" position="1" uuid="61d68f0e-e06f-46ac-a10f-24c6092dcde2"/>
+ </swc>
+ <misc/>
+ <theme/>
+</fxpProperties>
View
Binary file not shown.
@@ -1,94 +1,97 @@
/*
- Copyright 2009 Sönke Rohde
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+ Copyright 2009 Sönke Rohde
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
-package org.flaircode.oauth
-{
+package org.flaircode.oauth {
import flash.net.URLLoader;
import flash.net.URLRequest;
import org.iotashan.oauth.OAuthConsumer;
import org.iotashan.oauth.OAuthToken;
-
+
/**
* OAuth interface
* @author soenkerohde
* @see org.flaircode.oauth.OAuth
- *
- */
- public interface IOAuth
- {
+ *
+ */
+ public interface IOAuth {
/**
- *
+ *
* @param key Consumer Key
- *
- */
- function set consumerKey(key:String):void;
+ *
+ */
+ function set consumerKey( key : String ) : void;
/**
- *
+ *
* @param secret Consumer secret
- *
- */
- function set consumerSecret(secret:String):void;
+ *
+ */
+ function set consumerSecret( secret : String ) : void;
/**
- *
+ *
* @return OAuthConsumer
- *
- */
- function get consumer():OAuthConsumer;
+ *
+ */
+ function get consumer() : OAuthConsumer;
/**
- *
+ *
* @param url for Twitter http://twitter.com/oauth/request_token
* @return URLLoader. Listen for Event.COMPLETE and transform result to OAuthToken with OAuthUtil.getTokenFromResponse(event.currentTarget.data as String);
* @see org.iotashan.oauth.OAuthToken
- *
- */
- function getRequestToken(url:String):URLLoader;
+ *
+ */
+ function getRequestToken( url : String ) : URLLoader;
+
+ function getRequestTokenRequest( url : String ) : URLRequest;
/**
- *
+ *
* @param url for Twitter http://twitter.com/oauth/authorize
* @param requestTokenKey Key from a previously retrieved request token
* @return Can be opened in the browser or with AIR with the HTML control
- *
- */
- function getAuthorizeRequest(url:String, requestTokenKey:String):URLRequest;
+ *
+ */
+ function getAuthorizeRequest( url : String, requestTokenKey : String ) : URLRequest;
/**
- *
+ *
* @param url for Twitter http://twitter.com/oauth/access_token
* @param requestToken previously retrieved request token
* @param requestParams additional parameters like oauth_verifier with pin for Twitter desktop clients
- * @return URLLoader. Listen for Event.COMPLETE and transform result to OAuthToken with OAuthUtil.getTokenFromResponse(event.currentTarget.data as String);
- *
- */
- function getAccessToken(url:String, requestToken:OAuthToken, requestParams:Object):URLLoader;
+ * @return URLLoader. Listen for Event.COMPLETE and transform result to OAuthToken with OAuthUtil.getTokenFromResponse(event.currentTarget.data as String);
+ *
+ */
+ function getAccessToken( url : String, requestToken : OAuthToken, requestParams : Object ) : URLLoader;
+
+ function getAccessTokenRequest( url : String, requestToken : OAuthToken, requestParams : Object ) : URLRequest;
/**
- *
+ *
* @param method GET,POST,UPDATE,DELETE
* @param url for Twitter friends timeline and JSON result https://twitter.com/statuses/friends_timeline.json
* @param token
* @param requestParams
+ * @param removeParamsFromURL
* @return
- *
- */
- function buildRequest(method:String, url:String, token:OAuthToken, requestParams:Object = null):URLRequest;
+ *
+ */
+ function buildRequest( method : String, url : String, token : OAuthToken, requestParams : Object = null, removeParamsFromURL : Boolean = false ) : URLRequest;
}
}
Oops, something went wrong.

0 comments on commit 3f31fde

Please sign in to comment.